WIP: build separate bundles
finish up improved duplicate sibling ID behavior

see commit message from big refactoring commit about a dozen back.

Sorry if this is kind of nasty.
thereby removing the global duplicate ID limitation

(necessitating changing Export Form Contents to use the question path
instead of the question ID as a key).

woo!
avoid copying dist into itself over and over, and issue with false git
directory
reapply 94dec1: Fix broken XML serialization
Merge remote-tracking branch 'upstream/develop'

Conflicts:
	README.md
	src/javaRosa.js
WIP: use built files if not running tests on localhost
add screenshot
fix auto itext ID bugs
correct a name and comment
switch to MediaUploader submodule
remove unnecessary option
don't catch things we don't want to catch
fix issues with patch saving
Refactor build.js for RequireJS modules

- move main.js into src/ because RequireJS seems to have a bug that does not allow baseUrl to be outside of appDir (e.g., "../"). main.js now also holds common requirejs config.
- move module definitions from require-config.js into build.js.
- rearrange modules so that deferred components does not include things that should not be deferred.
- remove scoped require()'s with promise!s now that baseUrl path issues have been resolved.

Notes:
- the tests do not work; they haven't for some time.
- require-css does not seem to embedded, base64 encoded images. This needs to be fixed.
- the new modules still have some issues, for example: tool menus do not load.