Refactored and encapsulated minifying file server. Moved definition into its own file for easier testing.
Wrote PHPUnit tests for minifying file server.