Update code for setting proxy in firefox_profile.

1. fix misprint in _set_manual_proxy_preference
2. fix settin preferences in case of PAC proxy type
3. add tests for firefox_profile.set_proxy