Added a mapping of extension -> content types (for future cases when they won't easily match). Added more error checking.
Merge branch 'master' of github.com:deiu/rww.io