LoginRequired and UserPassesTest wrappers for http handlers