various fixes and improvements

* PHPUnit bugfix
* incomplete mimetype-mapping fix
* Travis CI/PHPUnit integration