OkHttp module upgraded to the dependency's 2.0.0 version. Code changes due to changed API.