Convert mock admin to use post/redirect/get loop

Protects the page from duplicate submissions and also makes the admin page
handlers for focused on single tasks.

http://en.wikipedia.org/wiki/Post/Redirect/Get
just out of curiosity, why use undefined for a hostname?