Fixed navigation issues

This fixes some issues with up navigation. In the old code, HomeActivity was always recreated when it was navigated up to, resulting in the loss of any state it had (tab position, scroll position, etc.). Intents are now delivered to the instance of HomeActivity that exists in the back stack so that it only resets its state and changes the mode if it needs to.