added explicit JSON resonses for errors. added jsonp support for 404