Adding Travis-CI support.
Added a ruleset that requires PSR-2, for now.
Fixing style errors reported by phpcs.