Cleanup and support AMD + CommonJS definition.
Basic task environment.
Add license file.