refactorings
moar refactorings and added tests into request processor
lots of refactoring and added request logger