tools/l2test: Fix passing address type to bind()
tools/mpris-player: Add support for MPRIS TrackList interface

This adds support for TrackList interface as defined in MPRIS:
http://specifications.freedesktop.org/mpris-spec/latest/Track_List_Interface.html
tools/mpris-player: Add implementation of TrackList.GetTracksMetadata
tools/mpris-player: Add implementation of TrackList.GoTo
tools/mpris-player: Add support for MPRIS TrackList.TrackAdded signal
tools/mpris-player: Add support for MPRIS TrackList.TrackRemoved signal
tools/mpris-player: Add support for MPRIS TrackList.TrackMetadataChanged signal
tools/mpris-player: Add support for MPRIS Playlists interface

This adds support for Playlists interface as defined in MPRIS:
http://specifications.freedesktop.org/mpris-spec/latest/Playlists_Interface.html
tools/mpris-player: Add implementation of Playlists.ActivatePlaylist
tools/mpris-player: Add implementation of Playlists.GetPlaylists
tools/mpris-player: Map mpris:trackid to Item

mpris:trackid is used as identifier of the current track.
tools/mpris-player: Always register Playlists and TrackList

MPRIS spec does not make use of ObjectManager so the interfaces need
to be registered all together otherwise clients may get errors and
assume the interfaces will never be registered.
tools/mpris-player: Wait MediaFolder interface appear to enable TrackList

This avoids having to use g_dbus_proxy_new which may create a new proxy
when the interface is no registered yet and might not be ready for use.
tools/mpris-player: Use playlist proxy instead of object path

This is more convenient as it gives access to all properties including
the Name of the playlist.
tools/mpris-player: Emit changes to HasTrackList
A2DP: Fix regression introduce by 99c6f5221800a48e8ce0b1e070e97d1c26a0f90b

Commit 99c6f5221800a48e8ce0b1e070e97d1c26a0f90b checks if there is a
pending resume and in case OPEN fails it abort it as well, but it can
cause a crash if resume was not requested and the setup is freed by
finalize_config:

Invalid read of size 4
   at 0x4214AD: open_cfm (a2dp.c:730)
   by 0x424D07: handle_transport_connect (avdtp.c:878)
   by 0x4288F2: avdtp_connect_cb (avdtp.c:2419)
   by 0x4458B8: connect_cb (btio.c:230)
   by 0x4E79D12: g_main_context_dispatch (gmain.c:2539)
   by 0x4E7A05F: g_main_context_iterate.isra.23 (gmain.c:3146)
   by 0x4E7A459: g_main_loop_run (gmain.c:3340)
   by 0x44B0AC: main (main.c:583)
 Address 0x62c8564 is 68 bytes inside a block of size 88 free'd
   at 0x4C2A82E: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x420094: setup_free (a2dp.c:156)
   by 0x420101: setup_unref (a2dp.c:168)
   by 0x4201CF: setup_cb_free (a2dp.c:191)
   by 0x4203DC: finalize_config (a2dp.c:234)
   by 0x4214A8: open_cfm (a2dp.c:728)
   by 0x424D07: handle_transport_connect (avdtp.c:878)
   by 0x4288F2: avdtp_connect_cb (avdtp.c:2419)
   by 0x4458B8: connect_cb (btio.c:230)
   by 0x4E79D12: g_main_context_dispatch (gmain.c:2539)
   by 0x4E7A05F: g_main_context_iterate.isra.23 (gmain.c:3146)
   by 0x4E7A459: g_main_loop_run (gmain.c:3340)
test/ftp-client: Fix syntax error for python 3.0
btio: Add BT_IO_OPT_SOURCE_TYPE option for source bdaddr type
core: Always specify local LE address type with btio
btiotest: Add support for listening on a fixed CID