Merge remote-tracking branch 'origin/master' into dev
fix bonus status code (should be 7) and counterbalancing criteria
Merge branch 'dev' of github.com:NYUCCL/psiTurk into dev
added to bonus status code fix
fixed typo from earlier commit
subtle change in command docstrings to fix hit expire

docopt wasn't parsing command as expected, causing all "hit extend"
commands to extend assignments, not time. Added parentheses around
pairs of optional parameters that have to appear together to fix the
problem.

Fixed similar problem in worker list, though don't think earlier version
caused problems in this case.
Include logger example for custom routes
Revert modify server and add mode in url

mode of experiment gets passed from ad server when subject is sent to
server, then is passed through pages of experiment until the end. Works
locally with "mode=debug", can be tested further once ad-server changes
go live.
change logic of where "mode" sends people for complete route

Now the catch-all case is local "/complete", and people are only sent to
the ad server if mode is "sandbox" or "live". (before, sending people to
the live ad server was the "else" case, so any gibberish mode string
would send them there).
switch to gnureadline
Enable easy ad and api server debugging via config
Stop restarting server on mode change
fix indexing error in insert_mode
Print external URL when using debug --print-only

- Using the --print-only option implies that the user is on a remote
  server, so providing a localhost URL is unhelpful.
Print external URL when using debug --print-only

- Using the --print-only option implies that the user is on a remote
  server, so providing a localhost URL is unhelpful.
Post MTurk HIT URL on HIT creation
switch to gnureadline
Tunnel through firewalls

- This commit adds:
  - a tunnel client
  - psiturk_tunnel module to wrap the client
  - basic tunnel commands (open, close) to the psiturk_shell
Improve tunnel commands in shell
Remove print statements from debugging