Refactor: motor.h

Functionality regarding motor control have been split from main.c into motor.h.
Includes and makefile have been updated accordingly.

Signed-off-by: Anton Landberg <git@atnon.se>
Refactored ADC and command handling.

ADC as well as command functions are now situated outside the main.c file.
The makefile have been updated accordingly, along with main.c

Signed-off-by: Anton Landberg <git@atnon.se>