Spike for a new API for declaring endpoints

Nop, initially I used events to communicate between datalayer and BaseView but now they are no longer needed. Will remove them.