Improve management of layers option tables:

* Concerns locate by layer, edition, lizmap external baselayers, filtered layers, timemanager
* Remove layers from table if not in the project anymore or if removed during work session
* Rename layer in the table when renamed from the project
* Some code refactoring