Basic refactoring on debugger.

Help functions should live next to the code it calls so stuff is readable.  Also, now with functional parsing of commands and a bunch of cleanup.
Merge pull request #355 from racker/push-debugger-upstream

Basic refactoring on debugger.