Added unit tests for GraphWriterImpl.

This needs to be refactored even further, not happy with the way it is structured.
Renamed GraphRequestType attributes to match CRUD.
Created GraphValidator in charge of validating input data.

I had data checks all over the code, now all validation are in one place.
Cleaned up and refactored the validation rules.