Feature/implement json api

This pull request continues the work initiated by @thermz to produce a working JSON API for TMF core.

I have tested this both using `jetty-runner` and `Tomcat 8` using Java 8 on Xubuntu 14.10.