Entry points refactoring

We got rid of dependency of main.app and collect root endpoints once
at applications startup instead of re-iterating over all endpoints over
and over.

Change-Id: I453bd1e01ee1025fbabd3c77ceafc249af3cd56a