complete Foscam camera support with auto reconnection abilities
restructure output system and add mjpeg output