Removed redundant or unused includes
Using poll instead of select since poll has a much nicer interface
Making it possible to specify number of frames to capture, defaults to one frame
Added default output filename and handle EAGAIN result from v4l2_read()
Inverted some weird boolean statements and removed code to handle buggy v4l2 drivers