Move endpointgen to the endpoints module, new release Gradle task