Fixed some stylistic errors

* Ran through gofmt
* Simplified the mime-type checker
* "arrays" => "slices" as is correct in Go