add more meta tags to HTML header

also add proper title tag
reorder internal metadata handling