Transitioned build framework to Gradle

Needs finer testing.
This will make porting to 1.7 so much easier though.
Any questions, issues, or requests just post them below.

Sorry about the previous pull request!