Expose domain in request locals

pick feature from HabitRPG fork, LGTM

https://github.com/HabitRPG/domain-middleware