Improving rakefile, adding dependencies for travis, working with phpcs.
Switching to PSR-2 code style.
Fixing unit tests execution.