rxApp .run

Moved initialization of encoreNav to inside a 'run' function, so that it's ready to use when an app gets to its 'run'