AIM: add reverse foreach macros
AIM: add list_first and list_last functions
Merge into master from pull request #6:
add list first, last, foreach_reverse, and foreach_reverse_safe APIs (https://github.com/floodlight/infra/pull/6)