Major upgrades

This upgrades the gems for security and stabilizes the test suite. Also adds Travis-CI config.