Bug 1100295 - Implement navigation logic. r=crdlc

This was just a convention we took in the past, keep all private vars and functions in this way. We could review this, but I would keep the same code style by now.