Fixed several problems with Graph.
Create UserAccessException for Session.getDatabase() to ensure that we
don't try to auto-log when a user doesn't have access to an NSF.

Signed-off-by: Nathan T Freeman <nathan.freeman@redpilldevelopment.com>
Improved Log file handling by forcing flush immediately on publish, so
you don't have to wait for the JVM to shut down to see your stack trace.

Fixed a MAJOR bug with Transactions where if a Document was saved as
part of one transaction, the same instance would not be included in any
subsequent transaction.

Signed-off-by: Nathan T Freeman <nathan.freeman@redpilldevelopment.com>