Support membership enabled flag, begin fixing unit tests, add application_info optional argument to domains controller.