Added API functionality for Event registration and unregistration. Begginning test cases