Fix to_json in service object
Remove dead code
Create dockerfile and build from code_dir