add docs gradle task

runs javadoc on all subprojects and collects output to common dir
Fix useragent when we can't get android version