Path and reference helpers refactored.
console.log cleanup.
Refactoring of catalogs.
Merge branch 'catalog-updates' of https://github.com/peerlibrary/peerlibrary into catalog-updates

Conflicts:
	client/lib/catalog.coffee