detect contenttype by checking snippet title

Now its quite easy to set the content type to
use a reasonable fileextension in the snippet
title.