Auth editor view

I know this is my fault, but now I am thinking that these functions would make more sense on the prototype since they make use of an OO `this`. This would also help in unit testing.