Fixes bug with static statement
Removed obsolete lib
Extracted request handler into dedicated file and sorted statements in #registerRoutes