GUI-876: Pass controller options to user detail page as a JSON string.  Misc PEP8 cleanup.