Refactor  to maven project(Include android project).

Fixed failure test and Refactor to maven project.
 
Android module needs refer to https://code.google.com/p/maven-android-plugin/wiki/GettingStarted