Adding JSON API with spray.
Optimizing imports.