move the AT macros to a browser view

also includes some flake8 fixes
Merge pull request #51 from plone/davisagli-at-template

move the AT macros to a browser view