JSON interface for the debugger and implement clearing of breakpoints

 * "clear" clears all breakpoints that have been set
 * JSON responses from the debug server to ease machine parsing
 * refactor debugger interface where necessary