Added some more tests, rewrote some views. Added travis-ci integration.