Refactor some control flow.
Added an abstract source/observer class pair, to later be subclassed and specialized into concrete accelerometer event sources which will use the generic MotionIO class type to dispatch their events to Node.js.