Fixes #814273, copy over email backend code to gaia, and insert individual script tags, instead of copying over a built file.
status commit
test_imap_general.js is green
bounce commit
changes from the other branch
fix refresh check test
status commit to take merge from master
Merge remote-tracking branch 'upstream/master' into always-refresh-2

Conflicts:
	data/lib/mailapi/activesync/folder.js
	data/lib/mailapi/imap/folder.js
	data/lib/mailapi/imap/probe.js
	data/lib/mailapi/mailslice.js
test fixes, slice resetting/refreshing. pre-merge
Merge remote-tracking branch 'upstream/master' into always-refresh-2

Conflicts:
	data/lib/mailapi/activesync/folder.js
status commit; bounce computers
re-green test_imap_general with server/known messages propagation fixes
status commit: checkpoint partially re-greened tests

lots of debug in here to take out again
status commit: greened test_imap_complex.js
status commit: re-green imap_general; full sync logic errors had been codified

2 refresh cases were intentionally refreshing N-1 cases (where we were at 1
message per day), so they were not full syncs.  I had updated the cases too
quickly.  The logic was fixed in the last comit in test_imap_comples.js
status commit: test_imap_internals.js semi-greened; growth needs work
add a note about submodules
switch imap.js to use node net/tls modules instead of TCPSocket directly so we can more easily redirect in a worker
Merge pull request #121 from andreasgal/master

add a note about how to check out the submodules properly
Add --recursive for sub update; bugzilla ref