     res.redirect('index')
   )
 
+  # Route that the openID provider redirects user to after login.
   app.get('/login/openid/complete',
     passport.authenticate('openid', { failureRedirect: 'notyourwiki'}),
     (req, res) ->
       res.redirect('index')
   )
 
+  # Simple Access forbidden message when someone tries to log into a wiki
+  # they do not own.
   app.get('/notyourwiki', (req, res) ->
     res.send('This is not your wiki!', 403)
   )
 
+  # Traditional request to / redirects to index :)
   app.get('/', (req, res) ->
     res.redirect('index')
   )

        console.log 'saved' if argv.debug
      )
    console.log(action) if argv.debug
    # TODO: test action.fork
    if action.fork
      getopts = {
        host: action.fork

  )

  ##### Routes used for openID authentication
  # Currently throws an error to next(err) when id is blank.
  # TODO: Handle that error more gracefully.
  app.post('/login',
    passport.authenticate('openid', { failureRedirect: 'notyourwiki'}),
    (req, res) ->
      res.redirect('index')
  )

  # Get and post routes to logout.  The post one is the only one that
  # gets used from client, but the get logout route seemed useful as well.
  app.post('/logout', (req, res) ->
    req.logout()
    res.redirect('index')
