[app4] initial commit
+ modified login utils to work with jboss instead of tomcat (this was tougher than expected :-| )

Signed-off-by: Stefan Prisca <stefan.prisca@gmail.com>