Adding support for gradle. Still not done with keystore.
Fixed credentials input.
Minor gradle fixes.