Fix JSON serialiation for datetime objects

By using flask.json.
Implement creating, editing, listing pdnscontrol users