allow admin section to be conditional

If I check for presence of admin_port I can make it conditional for production installations where the admin port does not have to be exposed.