Added zf2 debug bar & convert more code to zf2