Never opening files outside root path
Refactoring handlers and request parameters