add user memberships and roles when creating lams courses for external courses to enable external user to get workspace tree properly(otherwise, user can't get organisation workspace folders due to permission issue)
- Remove method that had been used for the dummy monitoring interface.- Updated count (*) sql to accomodate two different versions of hibernate - it could return either an integer or a long.