#390 Adds basic proxy support for http source
flake8 compliant
flake8 compliant
Merge branch 'develop' of https://github.com/AlexandrePTJ/mopidy into feature/gst_proxy
Assign proxy when source need it (not only http)
Pause gstreamer when buffering

When the `playbin2` pipeline is in `PLAYING` state and its buffer is empty the
pipeline will consume arriving data immediately. If the source is an HTTP
stream this leads to choppy playback. To fix this we pause playing when the
buffer is nearly empty and wait for it to fill up until we resume playing. This
approach is recommended in the gstreamer manual [1].

We might want to extract the hard-coded 10% mark and make it configurable.

[1]: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-buffering.html
Set buffer properties of gstreamer pipeline

Manually set the `playbin2` buffer properties to their default values. The
default values are not documented but hard-coded in gstreamer [1].

This is a starting point for making these properties configurable. For example
we might want higher values on system with unsteady network connection.

[1]: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/gst/playback/gsturidecodebin.c?h=0.10#n1714
Don’t start playing automatically when buffer is full

Previously, when `Audio.pause_playback()` was called while buffering, the audio
actor would switch back to the playing state when the buffer was full.
Add tests for Audio buffering
network: Respond to messages before closing connections

This makes a connection tell the actor to stop the connection, instead
of stopping it itself. This is preferable, because other messages sent
to the actor that is not processed yet, may now send data to the client.

E.g. it makes this work:
$ echo status | nc localhost 6600
Add extra zeroconf stuff in http to announce mopidy-http as it's own service

This is intended to help clients using the websocket api discover mopidy
Merge branch 'develop' into feature/zeroconf-announce-mopidy
Update default http config to add new zeroconf-websocket option
Update tests to add zeroconf-websocket config option
local: Ensure directory for library exists (fixes #703)
docs: Use badges from Shields.io
travis: Use 2.7_with_system_site_packages so tox with sitepackages=true can find gst/glib/etc
Merge pull request #722 from trygveaa/develop

network: Respond to messages before closing connections
docs: Update changelog
Merge trygveaa/fix/bug-703-library-ensure-directory-exists into develop