Proxy config

Add a proxy configuration option when the setting is enabled.

![api_console](https://cloud.githubusercontent.com/assets/1088987/4068435/d554dfe0-2e38-11e4-9ef3-73f1f1071da7.png)