Make Front Matter detection more robust 

I've added a few checks to get it working with malformed files
and ones which don't contain a Front Matter at all.
It's also possible to use a different yaml separator.