Removing the print of license in a strange place.
Changes to fix issues pointed to by enabling jslint.
Fixing the out-of-memory issues by making the traversal of catalogs and pages syncronious.
Bugfixing the handling of empty results from cumulus.
Merge pull request #62 from NationalMuseumofDenmark/master

Cleaning up by removing the license from the asset.jade template and fixing the out-of-memory issues in sync.es.js