Fix javascript to sent Json header file, and server make use of Flask build-in request.json method to pass data object into controller code. Modified/Fixied controller and unit tests controller to accept this changes.