Authenticate historical user lookup

Add getvisitorprofile() Twig function and make email address easy to access

e.g.
```twig
{% set author = getvisitorprofile(topic['author']) %}
<div>Posted by {{ author.username }} &lt;{{ author.email }}&gt;</div>
```

Let me know if you want anything cleaned up @jadwigo :-)