changed datastore servlet response to default to 400 for malformed requests
added class cast exception and proper 4xx return for patch