Refractoring and adding gradle, making the mod easier to compile for others.