Started writing tests.

Moved `tests/index.php` to `demo/index.php`
Added `.travis.yml`.