Remove functions that are no longer used, cleanup
Use zf2 methods for dynamic translations
Align comments
Remove old way query log
Use ZF2 methods