Fixed a number of issues in the motor driver as a result of the test suite that can be found in ev3dev-tools
Merge branch 'ev3dev-jessie' of github.com:ev3dev/ev3dev-kernel into ev3dev-jessie