Merge pull request #4 from ADmad/master

Refactored CookieAuthenticate
fix strict errors, broken tests and add test for token auth
adding travis file
adding missing App::uses(), update travis to run 2.2 only on php 5.3 as the signature for getUser() was changed in 2.3