Revert "Merge pull request #48 from jpoon/master"

This reverts commit fb4221349eb0691b3f758ecf0f970ca8eb115b77, reversing
changes made to 00cf17023ece9cacabdd198a27c1d2c9064e8304.

Conflicts:
	.gitignore
	Production/Utilities/AndroidUtilities/build.gradle
	Production/build.gradle
	build.gradle
Fix what we broke in the revert

We did a revert because while restructuring the Thali projects using
gradle sub-projects made working with the project in the IDE much easier
it also raised two bugs. The first bug (which I'm just putting here so
we don't forget) is that when gradle creats POMs it needs to know the
groupid and version. We set these manually in the uploadArchive command
but that doesn't apply to dependencies. The fix was to put in the global
level something like:
subprojects {
  group = 'com.msopentech.thali'
  version = '0.0.2'
}
So we could fix that. The next bug we couldn't fix. It's actually a bug
in IntelliJ that when debugging sub-modules via Gradle it screws up the
paths and so resources aren't available, only classes. This killed our
ability to run our code in debug. Unfortunately IntelliJ, when we looked
up the link, made it clear they aren't going to fix it in IntelliJ 13 and
suggested using 14. The problem is that 14 is an Early Access Preview
which means (according to IntelliJ's own warning) that it isn't even
necessarily beta quality and anyway they are using a newer version of the
Android code that isn't compatible with the version of the Android tools
we are using. Since we aren't going to risk updating Android tools right
now this left us with no choice but to revert.
See http://youtrack.jetbrains.com/issue/IDEA-120939#comment=27-777233 for
details on the bug.

Also, while I was in the area, I updated the sub-projects gradles to 1.12
since reverting to the old structure means we will be building individual
projects as well as the globalBuild and we want to keep our gradle versions
consistent.

Jason also figured out a fix for the problem we were having with the
copyTestFiles task not running when we ran test in JavaUtilities, we
needed to hook to compileTestJava.
Missed a gradle update and a few comments in build files
Merge pull request #55 from yaronyg/master

Undo the gradle multi-module refactor
first pass w/ replication manager working
This file accidentally got checked in
This update got lost in the big revert
Merge remote-tracking branch 'origin/master'
Merge remote-tracking branch 'upstream/master'
Merge pull request #56 from yaronyg/master

Deleting a .idea file that snuck in and a bug in a gitignore
faster replication, add some logging, replace tdh html stream
feedback changes
Merge remote-tracking branch 'upstream/master' into repmgr
Merge pull request #57 from jmspring/repmgr

Replication manager changes
Minor android bug fix and cleaned up web relay a little

We were logging something on the main thread that involved network
activity which makes Android unhappy so I put in a switch to turn it off
in Android.

I also refactored the web relay code so that the CORS headers are added
in a single choke point rather than having to remember to add them to each
response individually.
Merge remote-tracking branch 'upstream/master'
Merge pull request #61 from yaronyg/master

Minor android bug fix and cleaned up web relay a little