fix phones api
First draft for the master_json to become termplates
Modifying the view formating key value. it is now the name and the id
Just adapting the device POST apis for the backend request
Making the json_error an ProvisionerUtils function + some style