refactor to use new json protocol
fix travis ci build
add various apis
fix for scala 2.10
Merge pull request #32 from jilen/new_json_protocol

New json protocol