list: Add HEAD and TAIL macros

Change-Id: Iafc920ce1fc5f6eae79a59ad85c49fa607fc311f
Reviewed-on: http://review.couchbase.org/34756
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>