 
   ##### Redirects #####
   # Common redirects that may get used throughout the routes.
-  app.redirect('index', (req, res) ->
+  app.redirect 'index', (req, res) ->
     '/view/' + argv.s
-  )
-
-  app.redirect('remotefav', (req, res) ->
+
+  app.redirect 'remotefav', (req, res) ->
     "http://#{req.params[0]}"
-  )
-
-  app.redirect('oops', (req, res) ->
+
+  app.redirect 'oops', (req, res) ->
     '/oops'
-  )
 
   ##### Get routes #####
   # Routes have mostly been kept together by http verb, with the exception
   # of the openID related routes which are at the end together.
 
-  app.get('/style.css', (req, res) ->
+  app.get '/style.css', (req, res) ->
     res.sendfile("#{argv.r}/server/express/views/style.css")
-  )
 
   # Main route for initial contact.  Allows us to
   # link into a specific set of pages, local and remote.
   # Can also be handled by the client, but it also sets up
   # the login status, and related footer html, which the client
   # relies on to know if it is logged in or not.
-  app.get(///^((/[a-zA-Z0-9:.-]+/[a-z0-9-]+(_rev\d+)?)+)/?$///, (req, res) ->
+  app.get ///^((/[a-zA-Z0-9:.-]+/[a-z0-9-]+(_rev\d+)?)+)/?$///, (req, res) ->
     urlPages = (i for i in req.params[0].split('/') by 2)[1..]
     urlLocs = (j for j in req.params[0].split('/')[1..] by 2)
     info = {

    else if action.type is 'create'
      # Prevent attempt to write circular structure
      itemCopy = JSON.parse(JSON.stringify(action.item))
      pagehandler.get(req.params[0], (e, page, status) ->
        if e then return actionCB(e)
        unless status is 404
          res.send('Page already exists.', 409)
        else
          actionCB(null, itemCopy)
      )
    else if action.type == 'fork'
      if action.item # push
        itemCopy = JSON.parse(JSON.stringify(action.item))

    else res.send('Access Forbidden', 403)

  # Simplest possible way to serialize and deserialize a user.
  passport.serializeUser (user, done) ->
    done(null, user.id)

  passport.deserializeUser (id, done) ->
    done(null, {id})

  # Tell passport to use the OpenID strategy. And establish
  # owner as the test of id.
  passport.use new OpenIDstrat {
    returnURL: "#{argv.u}/login/openid/complete"
    realm: "#{argv.u}"
    identifierField: 'identifier'
  },
  (id, done) ->
    loga id, done
    process.nextTick ->
      if owner
        if id is owner
          done(null, {id})
