Pass opts to get_event() instead of both sock_dir and transport
Add mock for replacing get_event() in tests where needed
Mock fire_event() in test to check auth setting