anchor.diff:          'POST' ->
               case PathTokens of
                   ["uilogin"] ->
  -                    {done, handle_uilogin(Req)};
  +                    {ui, IsSSL, fun handle_uilogin/1};
                   ["uilogout"] ->
                       {done, handle_uilogout(Req)};
                   ["sampleBuckets", "install"] ->
  
positive.code:                 ["index.html"] ->
                      {done, redirect_permanently("/ui/index.html", Req)};
                  ["ui", "index.html"] ->
                      {done, menelaus_util:reply_ok(
                               Req,
                               "text/html; charset=utf8",
                               menelaus_pluggable_ui:inject_head_fragments(
                                 AppRoot, Path, Plugins),
                               [{"Cache-Control", "must-revalidate"}])};
                  ["classic-index.html"] ->
                      {done, menelaus_util:serve_static_file(
                               Req, {AppRoot, Path},
                               "text/html; charset=utf8",
                               [{"Cache-Control", "must-revalidate"}])};
                  ["dot", Bucket] ->
                      {{[{bucket, Bucket}, settings], read}, fun handle_dot/2, [Bucket]};
                  ["dotsvg", Bucket] ->
  
negative.code: -spec perform_action(mochiweb_request(), action()) -> term().
  perform_action(_Req, {done, RV}) ->
      RV;
  perform_action(Req, {ui, IsSSL, Fun}) ->
      perform_action(Req, {ui, IsSSL, Fun, []});
  perform_action(Req, {ui, IsSSL, Fun, Args}) ->
      serve_ui(Req, IsSSL, Fun, Args);
  perform_action(Req, {Permissions, Fun}) ->
      perform_action(Req, {Permissions, Fun, []});
  perform_action(Req, {Permissions, Fun, Args}) ->
  