Python 3 compatibility and Travis integration

This PR adds Python 3 compatibility and Travis integration to apptools.

See commits messages for summary.