support CakePHP 2.0
formatting
more 2.0
formatting code
code refactoring, a little bit.
Add getLog()
logging only debug mode or 'log' option is true
fixes logging request method