Made the GrailGraph a transactional graph and allowed for mocking when dealing with non-transactional graphs.

Issue: GRL-28
Change-Id: I099e6ab946630dbab6c35effaa8f6b227eb78ea9