Support imports at the beginning of templates

Resolves https://github.com/playframework/twirl/issues/1