Fix date formating

Resolves #80 
Use `simplejson` if it's available, and use a custom json encoder which supports the formats supported by swagger.