added hit handling functions to datahandler
started moving towards a simpler server API
more simple API stuff
server now returns json dicts by default
set up for debugging
added data.finish to run_with_data