ipcam motion detection and mjpeg data gathering software written in Erlang