All this HTTP stuff is super ugly and doesn't belong in the model. Instead use our HTTP library and I have code from the mediation stuff that you can use to synchronously fetch the data. Much cleaner.