Live streanming bug fixing (icecast re-connection). Motion detection API. TO BE TESTED