Tests added

Tests, badges, and configuration added for PHPUnit, Travis, and Coveralls.

Build passes on `>=5.3`.