Tests passing; add travis file; fix database models for newer builds of MySQL.