master] Pom cleanup and remove rest server.

Summary:

Clean up the pom removing cruft.
Added JUnit 4.11
Moved to new surefire
Added Categories to test to allow faster local test runs.
Removed all of REST dependencies
Removed REST server and tests.
Test Plan:

mvn clean test
mvn clean test -PunstableTests
mvn clean test -PallStableTests
Reviewers: manukranthk, arjen, liyintang

Reviewed By: liyintang

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1594423 13f79535-47bb-0310-9956-ffa450edef68
[master] Fix RPC compression bug for titan

Author: jiqingt

Summary:
Send the length of the compression data in RPC response, otherwise we cannot establish boundrary between responses.

This requires protocol change, so the procotol version number is bumped up, the new server will be able to serve old clients, but the new clients will not work with old servers.

Test Plan:
Ran new servers with old clients, observed the same failure pattern with TF;
Ran new servers with new clients, no more missing put responses.

Reviewers: mycnyc, fan, aaiyer, liyintang

Reviewed By: liyintang

CC: hbase-eng@, daviddeng, manukranthk

Differential Revision: https://phabricator.fb.com/D1309076

Task ID: 4186257

git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/0.89-fb@1594424 13f79535-47bb-0310-9956-ffa450edef68