Move MAX, MIN and ABS to contiki-macros

Based on the discussion in #878 I started moving MIN, MAX and ABS macros to an extra file.