diff --git a/services/git-bridge/.idea/libraries/async_http_client_1_8_14.xml b/services/git-bridge/.idea/libraries/async_http_client_1_8_14.xml
new file mode 100644
index 0000000000..fda86f5b16
--- /dev/null
+++ b/services/git-bridge/.idea/libraries/async_http_client_1_8_14.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/services/git-bridge/.idea/workspace.xml b/services/git-bridge/.idea/workspace.xml
index c91270deb1..f267f5ea90 100644
--- a/services/git-bridge/.idea/workspace.xml
+++ b/services/git-bridge/.idea/workspace.xml
@@ -7,7 +7,6 @@
-
@@ -44,21 +43,11 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -78,7 +67,37 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -114,26 +133,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -147,9 +146,6 @@
@@ -825,7 +824,7 @@
-
+
@@ -1057,7 +1056,7 @@
-
+
@@ -1065,7 +1064,7 @@
-
+
@@ -1131,14 +1130,6 @@
-
-
-
-
-
-
-
-
@@ -1413,14 +1404,6 @@
-
-
-
-
-
-
-
-
@@ -1485,14 +1468,6 @@
-
-
-
-
-
-
-
-
@@ -1504,15 +1479,47 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
@@ -1596,7 +1603,7 @@
- org.eclipse.jgit.http.server-3.5.1.201410131835-r
+ async-http-client-1.8.14
diff --git a/services/git-bridge/build.xml b/services/git-bridge/build.xml
index ae82ed4a34..b29d07c474 100644
--- a/services/git-bridge/build.xml
+++ b/services/git-bridge/build.xml
@@ -83,6 +83,10 @@
+
+
+
+
@@ -111,6 +115,7 @@
+
@@ -123,6 +128,7 @@
+
@@ -135,6 +141,7 @@
+
@@ -148,6 +155,7 @@
+
@@ -250,6 +258,7 @@
+
diff --git a/services/git-bridge/libs/async-http-client-1.8.14-javadoc.jar b/services/git-bridge/libs/async-http-client-1.8.14-javadoc.jar
new file mode 100644
index 0000000000..5b17502610
Binary files /dev/null and b/services/git-bridge/libs/async-http-client-1.8.14-javadoc.jar differ
diff --git a/services/git-bridge/libs/async-http-client-1.8.14.jar b/services/git-bridge/libs/async-http-client-1.8.14.jar
new file mode 100644
index 0000000000..7d07b3cf88
Binary files /dev/null and b/services/git-bridge/libs/async-http-client-1.8.14.jar differ
diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/Snapshot.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/Snapshot.java
index 05172cade2..beb36692a6 100644
--- a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/Snapshot.java
+++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/Snapshot.java
@@ -7,7 +7,7 @@ import com.google.gson.JsonElement;
*/
public class Snapshot implements JSONSource {
- private int version;
+ private int versionID;
public Snapshot() {
diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLDataModel.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLDataModel.java
new file mode 100644
index 0000000000..1f4e8d4fc0
--- /dev/null
+++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLDataModel.java
@@ -0,0 +1,24 @@
+package uk.ac.ic.wlgitbridge.writelatex;
+
+import com.google.gson.JsonElement;
+import com.ning.http.client.AsyncHttpClient;
+import com.ning.http.client.Realm;
+
+import java.util.Map;
+
+/**
+ * Created by Winston on 06/11/14.
+ */
+public class WLDataModel implements JSONSource {
+
+ private final Map projects;
+
+ public WLDataModel(Map projects) {
+ this.projects = projects;
+ }
+
+ @Override
+ public void updateFromJSON(JsonElement json) {
+
+ }
+}
diff --git a/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLProject.java b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLProject.java
new file mode 100644
index 0000000000..442fdadab0
--- /dev/null
+++ b/services/git-bridge/src/uk/ac/ic/wlgitbridge/writelatex/WLProject.java
@@ -0,0 +1,27 @@
+package uk.ac.ic.wlgitbridge.writelatex;
+
+import com.google.gson.JsonElement;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Created by Winston on 06/11/14.
+ */
+public class WLProject implements JSONSource {
+
+ public static final int VERSION_ID_INVALID = -1;
+ private final Map snapshots;
+ private int latestVersionID;
+
+ public WLProject() {
+ snapshots = new HashMap();
+ latestVersionID = VERSION_ID_INVALID;
+ }
+
+ @Override
+ public void updateFromJSON(JsonElement json) {
+
+ }
+
+}
diff --git a/services/git-bridge/writelatex-git-bridge.iml b/services/git-bridge/writelatex-git-bridge.iml
index 027ce38a9c..2a9a775135 100644
--- a/services/git-bridge/writelatex-git-bridge.iml
+++ b/services/git-bridge/writelatex-git-bridge.iml
@@ -16,6 +16,7 @@
+