Fix module for 1.6
Fixes for 1.6 beta

 * Update to use new module names
 * Rewrite most tests using TAP
 * Fix minor bugs
Add Travis configuration
Update README