Added client-side validation

Provided RESThub-specific implementation for validating coffee record on
the client-side.
Conflict merged