anchor.diff:  handle("/favicon.ico", Req) -> Req:respond({200, [{"Content-Type", "text/html"}], ""});
   
   handle(Path, Req) ->
  -  CleanPath = clean_path(Path),
  -  CAtom = erlang:list_to_atom(top_level_request(CleanPath)),    
  -  ControllerPath = parse_controller_path(CleanPath),
  +  BaseController = top_level_request(clean_path(Path)),
  +  CAtom = list_to_atom(BaseController),
  +  ControllerPath = parse_controller_path(clean_path(Path)),
     
     case CAtom of
  -    home -> 
  +    home ->
         IndexContents = case file:read_file("web/wonderland/index.html") of
           {ok, Contents} -> Contents;
           _ -> "
  
positive.code:   {struct, Struct} = mochijson2:decode(Data),
    Struct.
  
  subst(Template, Values) when is_list(Values) ->
    list_to_binary(lists:flatten(io_lib:fwrite(Template, Values))).
  
  % parse the controller path
  parse_controller_path(CleanPath) ->
  
negative.code:         "
        end,
        Req:ok({"text/html", IndexContents});
  		assets -> Req:ok(assets:get(ControllerPath));
      ControllerAtom -> 
      Meth = clean_method(Req:get(method)),
      case Meth of
        get -> run_controller(Req, ControllerAtom, Meth, [ControllerPath]);
        _ -> run_controller(Req, ControllerAtom, Meth, [ControllerPath, decode_data_from_request(Req)])
      end
    end.
  
  
  % Call the controller action here
  run_controller(Req, ControllerAtom, Meth, Args) ->
    case (catch erlang:apply(ControllerAtom, Meth, Args)) of
      {'EXIT', {undef, _}} = E ->
        ?INFO("(~p:~p) Error in rest server: ~p~n", [?MODULE, ?LINE,E]),
        Req:ok({"text/html", "Unimplemented controller. There is nothing to see here, go back from where you came"});
      {'EXIT', E} -> 
        ?INFO("(~p:~p) Error in rest server: ~p~n", [?MODULE, ?LINE, E]),
        Req:not_found();
      Body -> Req:ok({"text/json", jsonify(Body)})
    end.
  
  
  jsonify(JsonifiableBody) ->
    [ ?JSON_ENCODE({
  