Error on unmarshalling JSON content: wrong format.

When start with Distributed mode, OSerializtionException happened.
Error on unmarshalling JSON content: wrong format. Use <field> : <value>.
Exception happened at ORecordSerializerJSON.java Method : fromString 
    if (fields.size() % 2 != 0)
      throw new OSerializationException("Error on unmarshalling JSON content: wrong format. Use <field> : <value>");
Due to "," at the end of json, this fields number is 9 not 8. Easiest solution, remove "," before end of json object


Write some simple test code to verify. 

  public static void testloadDatabaseConfiguration(final String filePath) {
	    File file = new File(filePath);
	    if (!file.exists() || file.length() == 0)
	      return;
	    FileInputStream f = null;
	    try {
	      f = new FileInputStream(file);
	      final byte[] buffer = new byte[(int) file.length()];
	      f.read(buffer);
	      System.out.println("<loadDatabaseConfiguration> : " + new String(buffer));
	      ODocument doc = (ODocument) new ODocument().fromJSON(new String(buffer), "noMap");
	    } catch (Exception e) {
	    } finally {
	      if (f != null)
	        try {
	          f.close();
	        } catch (IOException e) {
	        }
	    }
	  }
support compress response content
NPE

NPE checking
sync with trunk
Support gzip compression for response data
Support gzip compression for response data
gzip compression
Merge branch 'master' of git://github.com/nuvolabase/orientdb
For embedded json object
get request source
get request source
Merge branch 'master' of git://github.com/nuvolabase/orientdb
Merge branch 'master' of https://github.com/henryzhao81/orientdb
Merge branch 'master' of git://github.com/nuvolabase/orientdb
Fix 1406, exception when starting distribute mode

To fix issue : https://github.com/nuvolabase/orientdb/pull/1406, 
On distributed mode, exception will throw when starting server, error saving distribute configuration which should not be save. Following is distribute configuration document format: 
{"@type":"d","@version":0,"internal":{"@type":"d","@version":0,"synchronization":false},"index":{"@type":"d","@version":0,"synchronization":false},"ODistributedConflict":{"@type":"d","@version":0,"synchronization":false},"*":{"@type":"d","@version":0,"synchronization":true,"master":"$auto","synch-replicas":1,"asynch-replicas":"100%"}}
alignment
Merge pull request #1423 from henryzhao81/master

Fix 1406, exception when starting distribute mode