Make use of Flask.json_encoder

Make flask-restful play nicer with the newish flask json_encoder mechanism