LMSConfig integration

Fixes some bugs in LMSConfig.
Adds user priviledges integration to LMSConfig.
Replaces check_conf and get_conf functions.