Improved video capture to only record when there is motion.

Added a method recordMotion() in Cam.java that records video when there is motion, so that it doesn't record a full video of nothing happening.