improved contiki support

- using the contiki list to manage peers instead of uthash.h (smaller
code size)