[Backend] Correctly determine mime type and cache static content

* reduces load to the server
* removes the bug that wysihtml5_style.css is loaded on every request
  (it is still loaded, but served by the browsers cache each time)