Code standards and package fixes

- Update to PSR-0, PSR-1, and PSR-2 standards
- Use Travis CI for builds/tests
- Remove PEAR package
- Apache2 license