EZ-VSN: An Open-Source and Flexible Framework for Visual Sensor Networks