Pull into devel

Multiple changes....
- check if we are the only running instance (implement LOCK); 
- take care of common errors; 
- clean the obsolete files from the CDN at specific time (user defined);
- fix EXIT code generated by errexit;
- add function to remove LOG files older than 3 days