When processing an ajax request setup the user on the 'init' hook, when doing anything else setup the user on the 'wp' hook