feat(build system): Generate version.json

Changes 'rake version' to output a version.json file which
contains the parsed version and can be used in other tools.
fix(build system): Removes a duplicate file in angularFiles.js
fix(Scope): ensure that a scope is destroyed only once

Due to bd524fc4 calling $destroy() on a scope mupltiple times cases NPE.

Closes #1627