Moved utility functions from TBILogWriter to TBIUtility. Also made it so that the random number generated for userID.... wasn't always the same random number, every time.