added @Singleton annotation to rest controller to make injection work propery in glassfish as well. Fixes demo crash :)