msgqueue: forgot an include.
capture: close the capture device when stopping the capture thread.
appobject: first introduction. Parent class for every application modules.

simplifies the global calls to start/stop methods using polymorphism.
motionapp: make motionapp inherit from appobject.

Moves the contents of the constructor/destructor to start/stop method for
more control.
all: take advantage of the appobject class to control the application from the session manager.
makefile: add debug flag for debugging with eclipse/GDB.