Added Travis CI configuration file.

Also made some PSR2-related tweaks.