An adapter factory for Retrofit2 library. Has the ability to get LiveData from retrofit call and serialize error response to a generic custom model.