Add transaction support

Added the ability for the GraphServer to autocommit, and an option to
turn that off (e.g. for testing).