javascript: added basic examples to mraa

Signed-off-by: Dan Yocom <dan.yocom@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
mraa: update to version 0.4.4

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
spi: if platform has one spidev, defaults to it.

* Removes complexity on some platforms.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
pwm: rename internal functions from get to read

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
pwm: add config_ms and config_percent.

* Allows user to set both at the same time. Will reset to previous if
* period for duty cycle fails to write

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
common.hpp: fix documentation of functions

Functions inside namespace are tough to document, bypassing this by documenting
the namespace and then using the namespace doc as common.hpp doc in the index

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
docs: add references to galileo generation

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
gen 2: add hook for handling modes for gpio

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Merge remote-tracking branch 'upstream/master'

Conflicts:
	examples/javascript/AioA0.js
	examples/javascript/Blink-IO.js
	examples/javascript/GPIO_DigitalRead.js
	examples/javascript/GPIO_DigitalWrite.js