Moved declare.js and Errors.js to their own github repos/npm modules