Add few missing allow-none annotation

https://bugzilla.gnome.org/show_bug.cgi?id=703562

Conflicts:
	gst/gstmessage.c
buffer: Fix wrong size/index handling when merging memory

https://bugzilla.gnome.org/show_bug.cgi?id=702617
buffer: Add unit test for map_range()

https://bugzilla.gnome.org/show_bug.cgi?id=702617
basesrc: Do not lock a mutex that does not exist

The GST_LIVE_LOCK is on GstBaseSrc, not on its source pad.
allocator: fix type of gst_memory_alignment to match declaration

Fixes compiler warnings such as
gstallocator.c:61:8: error: conflicting types for 'gst_memory_alignment'
../gst/gstallocator.h:52:18: note: previous declaration of 'gst_memory_alignment' was here
Release 1.0.8
basesink: call state change in all cases

When we asynchronously go from READY to PLAYING, also call the
state change function so that subclasses can update their state for PLAYING.
Because the PREROLL lock is not recursive, we can't make this without
races and we must assume for now that the subclass can handle concurrent calls
to PAUSED->PLAYING and PLAYING->PAUSED. We can make this assumption because not
many elements actually do something in those state changes and the ones that
did would be broken even more without this change.

https://bugzilla.gnome.org/show_bug.cgi?id=702282
timeprovider: g-i: allow None as address for gst_net_time_provider_new()

Conflicts:
	libs/gst/net/gstnettimeprovider.c
query: gst_query_get_n_allocation_params() returns a new ref to the allocator
structure: gst_structure_copy() returns a new structure with (transfer full)
typefind: Only advance offset by the number of bytes we actually read

There might be a short read at EOS.
Release 1.0.9