moved all profiler init code to Profiler::init()
removed some last traces of factory()
fixed reset() method in update and delete query builders, defined $_last_join field in the first one

Signed-off-by: Sergey Calugher <SlKelevro@gmail.com>
Merge pull request #1258 from SlKelevro/qb-reset

(Re-request PR#1252) fixed Query_Builder::reset()
Automatic response wrapping for route callbacks