added gradle things to be able to publish; updated javadocs in HttpTemplate