Deliver JSON/JSONP with correct mime types

Close #444