ENH: (mako) 1. JSON accessors! 2. json_template stepIndex computation 3. mako_cherry starting to use both of those.

1. get_node_by_path() and set_node() in library.py
2. stepIndex autogenerated for each visit, to allow accessing by step name
3. initial visit (tab=0) activation works better now. also starting to use the JSON accessors above
FIX: (mako) automatically gets your IP address (note: http://localhost:8080) won't work!
(mako/buttonlib) Partial progress on revamping button access via button_ids.

(1) json_template.py builds the json part-by-part now. It's now named "info", not
      "json", though it's still called self.json in mako_cherry.py.
(2) subreg.html has been updated to reflect the new json.
(3) mako_cherry.py uses the new json. Partial progress on making formHandler work.
(4) Welcome to buttonlib.py! Some of the button-related methods
      are being moved from mako_cherry to buttonlib.
(5) In library, set_node has been renamed to set_here, and set_node
      now calls get_node, to offer parallel functionality.
ENH: (mako/buttonlib) partial progress on adding murfi plot to mako!
Issues: (1) the buttons don't do anything yet
	(2) ALL buttons would cause the plot to start polling for data.
MAJOR ENH: (mako/buttonlib) realtime functions connect to buttons! 6 realtime flots!

(1) mTBI_rt.py saves output to run00N.foo, because having to pass around the subject, visit, run number, AND date, was quite annoying.

(2) cherrypy/library.py: functions now take in logfile names and return logfile handles (and process handles), rather than taking in the logfile handles.
ENH: (mako/buttonlib) checkbox improvements. murfi nodes contain a 'done' element now.
ENH: (mako/buttonlib) working on integrating funcloc stimuli.
FIX: ButtonTest.py could have passed with buttons mapped backwards!
Now it checks that the first key = 1, second key = 2.
ENH: (mako/buttonlib) adding 'file' attribute to buttons that launch psychopy.
FIX: (mako/buttonlib) json_template.py syntax errors from last commit.
MERGE: (mako/buttonlib) starting to try to merge anisha's master in...
just added the consolidated Test psychopy files to the json_template.py.
(mako/buttonlib) mako no longer uses cherry's library.py
FIX/MERGE: Handmerge branch 'buttonlib' + anisha's master into sasen's master.
Conflicts:
	scripts/cherrypy/library.py
	scripts/cool_mako/json_template.py
	scripts/cool_mako/subreg.html
Fixes:
  (1) Uses sasen's mako refactor + anisha's psychopy wizardry.
  (2) Uses '6' for trigger (Texas buttonbox)
  (3) Saves funcloc + test psychopy output to subject/session dir.
  (4) Allows commandline specification of IP/port for mako
Partial progress on writing a function that regenerates flotter.js every time the RT
stimulus is launched. Eventually, it should also be regenned every time we switch tabs.
WIP: (mako) desperately trying to get flots to update in mako.
 -- feedback maxframes=10 (was 20)
(mako) + new funcloc: Merge remote-tracking branch 'anishas/master'

Conflicts:
	localXfer/Practice_Letter2back.py
FIX: (funclocs) transfer task stimuli are now tracked. less visual field flashing. new
trial order. graphic of ears/eyes instead of words. instruction screens.
ENH: added 2nd audio 1-back
ENH/BUG: 3 major things for mako/buttonlib:
(1) progress is tracked on each visit, and the next element is enabled after each form submit.
(2) tried to fix subject + session directory creation. BUGSBUGSBUGS
(3) updating jquery
ENH: mako enables steps in order now. Still need to add redo logic.
* previous BUG with new subject creation still exists!
* need to determine when we have valid data from psychopy steps before moving on.