anchor.diff:  
   create(App) ->
     case new(App) of
  -    NewApp when is_record(NewApp, app) -> 
  +    NewApp when is_record(NewApp, app) ->
         ValidAppWithName = validate_unique_name(NewApp),
         NewApp1 = validate_app(ValidAppWithName),
         save(NewApp1);
  
positive.code:     [N] -> App#app{name = generate_unique_name(N, 5)};
      [A,B] -> App#app{name = generate_unique_name(A, 5), branch = B}
    end.
    
  %%-------------------------------------------------------------------
  %% @spec (Name) ->    {ok, Value}
  %% @doc Generate a unique name based on a given name
  
negative.code:     _ ->  []
    end.
  
  %% APPLICATION STUFF
  update_by_name(Name) ->
    case find_by_name(Name) of
      not_found -> {error, "Cannot find app to update"};
      App ->
        %% Should this be synchronous or asynchronous?
        NewApp = App#app{updated_at = date_util:now_to_seconds(), latest_error = undefined, revision = undefined},
        ?NOTIFY({app, updated, NewApp}),
        {ok, save(NewApp)}
  