Various additions and fixes.

 - Added build types "plain" and "docs"
 - Added a build field "files" for package.json
 - Fixed some possible causes for InvalidMemoryOperationErrors.
 - Build options can now be of the form "dflags-x86" and "dflags-x86-dmd"