[WIP] Add proxy support

This function is broken. You need to fix it first, it basically will return you "http".