Homeless man in court charged with Dublin murder