Changes required by adapt_authoring project

Highlights are:
- New 'grunt server-build' task
- Support for specifying the output directory of the 'build' folder using the --outputdir switch
- Support for specifying a specific theme (in case more than one is installed)  using the --theme switch

These settings will have no impact on existing grunt tasks.
don't need the second argument to substring here