Major cleanup of anaconda-nav

Now uses next-error family of functions, with added commentary and docstrings.