Make partials valid HTML5
Convert to custom directives. Fixes #2