Minor refactoring
Rewrite rule for index.php
Unit test skeleton to try out travis