ActiveRest 5.0 with some refactoring and authorization framework