Fix returns invalid Content-Type on serving static file

changed to use mime.TypeByExtension() first.
Add testcase

for 761cb19eaa
Merge branch 'patch-2' of https://github.com/umisama/kocha into umisama-patch-2
Merge branch 'umisama-patch-2'