Fix I/O timeouts
Fix 'Unexpected response' with motion detection
Add picture_size() function to expose length of JPEG
Add tv,motion,picture commands to test