Cleaned up login and error handling/presentation.
Generics to enforce some typing on event retrieval.
Refactored events and added specialization.
Fixed a few bugs with unmarshalling of some collections.
Committing missing tests.
Other missing tests.