Make _defineModule call initializeProperties once.

Closes #340
Add dependencies back to module factory in NavBar.