play.py: vlc is available on FreeBSD too.
Merge pull request #5 from rene0/master

add FreeBSD support to play.py
Merge pull request #4 from VegarS/master

Add protobuf dependency to debian package and make track_uri() synchronous
Fix callback handling in song_uri
Move playlist/metadata handling inside API class

Add first shot at restriction handling code. It's a bit broken, so
help would be appreciated in fixing it.
Lots of refactoring
Import vegar's player which uses libmpg123.
vegar.py: adjust imports to match the repository layout
vegar.py: fix usage of ctypes on 64-bit systems.

On 32-bit systems, pointers, ints, and longs are all 32 bits long, but on
64-bit systems, ints are 32 bits long while pointers and longs are 64 bits
long.

Properly cast mh and aodev to ctypes.c_void_p and use restype attribute
to obtain the correct result. Otherwise, the high 32 bits are stripped off between the C and Python code,
resulting in broken code.

Tested on FreeBSD-10/amd64 using Python 2.7.3
vegar.py: whitespace police.
Fix restricted track handling

This hasn't failed on any tracks so far I've found. If you find
it's failing for you, enable level 3 logging, try the failing
request and then send me the log along with the track URI.
Merge pull request #6 from rene0/master

import Vegar's player using libmpg123
Add friendly API wrapper and new Spotify URI proxy that demos it
Call Python via env
Add album cover option to Spotify proxy
Fix serving demo import order
vegar.py: disconnect from Spotify in uri_callback() instead of track_callback()

This prevents a race condition frequently causing uri_callback() not to
be called, preventing actual playback.
vegar.py: adjust for new API, one less callback function used.
vegar.py: retire unused track_callback() and SpotifyUtil import.
vegar.py: do not import ctypes 'twice', prefix the CDLL function instead.