Added generating __opts__ when rest_wsgi not started via salt-api

Thanks to cxz on IRC for the report.