Add tests for travis

Includes an indexedDB polyfill. OMGs!