Use apps_create method when renaming an application. Closes #2252
Use apps_create method when renaming an application. Closes #2252

Since they are separate resources, triggering the normal app creation flow makes the most sense.

We still remove the cache directory because we want the correct cache permissions for the new application.

elia/dokku,elia/dokku,econya/dokku,elia/dokku,fruitl00p/dokku,econya/dokku,elia/dokku,elia/dokku,elia/dokku,progrium/dokku,alexquick/dokku,econya/dokku,dokku/dokku,jimjag/dokku,elia/dokku,dokku/dokku,alexquick/dokku,claytonbrown/dokku,jimjag/dokku,claytonbrown/dokku,progrium/dokku,econya/dokku,claytonbrown/dokku,econya/dokku,alexquick/dokku,alexquick/dokku,jimjag/dokku,fruitl00p/dokku,jimjag/dokku,fruitl00p/dokku,progrium/dokku,fruitl00p/dokku,jimjag/dokku,dokku/dokku,alexquick/dokku,claytonbrown/dokku,fruitl00p/dokku,alexquick/dokku,claytonbrown/dokku,econya/dokku,dokku/dokku,alexquick/dokku,jimjag/dokku,fruitl00p/dokku,claytonbrown/dokku,progrium/dokku,jimjag/dokku,fruitl00p/dokku,progrium/dokku,claytonbrown/dokku,claytonbrown/dokku,econya/dokku,dokku/dokku,econya/dokku,progrium/dokku,dokku/dokku,dokku/dokku,elia/dokku,progrium/dokku,dokku/dokku,jimjag/dokku,alexquick/dokku,fruitl00p/dokku,progrium/dokku