Clean up authentication a little
Convert server to CoffeeScript