Fairly large rewrite; server now properly serves files