The motion detection works along with the REST server
The system can now work with the REST Server and the detector but it is still unstable. Seems there are to many listeners being created