New testcase for missing role at startup.
Rafactoring.
Option parsing for api.
Refactoring.