Added possibility to extend plexus rest api, moved plexus connect to own component. Seems to work properly.