Add basic authentication to the toggler endpoint

To increase security I added a basic authentication for the toggler endpoint.
I'll have to require `core_ext/string/blank` since not the whole Active Support is required, but I'll use it.