renamed some packages and moved classes, also implemented jaas
integration for authorization