glassfish: basic multiple domain support, minor ebuild fixes

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>