Initial support for controlling replay with gdb.

The new default behavior for --replay is to start a debug server (the
rr process) on localhost:[pid].  To get the old behavior, provide the
flag --autopilot.  From there on, the rr process handles requests from
gdb.  With this patch, rr can handshake with gdb and process a
"continue" request until the replayed program terminates.
Merge pull request #51 from cgjones/debug

Initial support for controlling replay with gdb.