Error fix

There was FATAL error that basically prevented installing Qmics from
scratch.  Adding a new admin called function that was moved from that
module. Sigh. I just moved it  to shared file. Also some error
management improvement related to that implemented.