Tests

Adds back the test and starts to fix them.

First commit are the tests which are currently in drupal.org/project/poll, then starting to port them and some fixes.

Also includes a .travis.yml, once merged, you can enable the repository on travis-ci.org and it will automatically run the tests for every pull request and commit.