SPI Main Event Loop and Registry

SPI main loop and initialization
Event Listener Support
Registry queries