detect contenttype by checking snippet title

Now its quite easy to set the content type by
using a reasonable fileextension in the snippet
title.

Some hints/feedback would be awesome! :)