Adopted some CakePHP coding conventions

Make a space after if clause, spaces between comparsions, spaces
between string concatination point
Added travis environments

Sencha Touch 2.3.1 and CakePHP 2.4.10 (since master is already on 2.5.X)
Adopted foreach to CakePHP code convention
Extended PHPDocs
Cleaned up if clauses
Tabs must be used to indent lines
Use tabs instead of spaces for indentation
One space after a foreach clause start
code cleanup
Use elseif instead of else if
Fixed wrong spacing for comparsions
Fixed spacing after comma
Removed unnecessary multiple empty lines, Doc blocks must not be indented
Added phpdocs