refactoring WIP
WIP
WIP
WIP
WIP
WIP
work on security
improve http_logger middleware
WIP