types.h: Move mraa_pinmodes_t to types.h

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
common.h: move functions from types.h

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
mraa.i: add enum item rename rule

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>