Split app creation & local set up in twoauth post.