Added more tests to static_proxy to check for host and, host and port

It seems that ```static_proxy``` was failing with strings like http://server... I added some tests and code that might fix it.

Hope it's useful.

Cheers.