Automated Tests via Travis-CI

Well after much headache I've managed to get almost all the automated tests running via http://travis-ci.org for both MySQL and PostgreSQL. (Unfortunately I was unable to get the alias extension tests to work, and have no idea why they are broken.)

This also involved changing some of the database table creation queries and some select queries in order to work with PostgreSQL. (This should address issue #370 )

You can see results of some of the tests here: https://travis-ci.org/jgen/shimmie2

Ideally I'd like to have Shish's shimmie repo setup with the travis-ci hook to automatically run the tests once commits are pushed/pull into a branch -- but this will have to be up to him as I can't set it up without his account.

:)