Merge pull request #5 from jrfnl/master

Fix for reported filesize error and numerous other small changes - also download error!!
* [Bug fix] The new mimetype filter hook was called before the theme (and therefore the functions.php file) was loaded.

* [Security] Added some extra security measures