Change how to check ram use

The RAM usage check was generating a web request for each command to check -> inefficient and may cause errors when requests fail.
To change that, we did 2 things:
- the worker now send every ping the amount of free memory on the system
- the server will test the amount of free RAM based on this "fresh" value instead of querying the worker