Load 'es5-shim' on tests (required for 'bind()' to work in PhantomJS).
Merge pull request #50 from hbj/feature/fix-tests

Load 'es5-shim' on tests (required for 'bind()' to work in PhantomJS).
Configure app to show preloaded on view change and an error message on view change error.
Use route resolver for main view.
Use route resolver for CCU breakdown view.
Use route resolver for facilities view.
Use route resolver for inventory view.
Use route resolver for ledger view.
Use route resolver for stock count view.
Use route resolver for stock count summary view.
Use route resolver for stock out view.
Code enhancements.
Use route resolver for waste count view.