Cleaned up and moved it to the latest version of the Azure SDK.
Initial attempt at storing events works now.