Adding Response codes to Webservice.

Returning error code / json response on ok.
Return codes, (horrible) error handling added

The script is now at least a tiny bit more stable. Horrible error
handling though. Please keep in mind, that it is just use to show, how
it might be done. The facerec framework probably needs to see a lot more
love, to make this kind of stuff intuitive.