Made @require_secure decorator.
Added ssl only endpoints.