extension matching and some more templates

a cleaned up mime config would really make sense and make things much
easier - we could even invent our our mime types here. Things like
package-zip would be helpful