Using content-type for choosing the viewer instead of extension

Here's a duplicate of this issue https://github.com/kogmbh/ViewerJS/pull/52. But much more cleaner! ;)