Replace call to (private api) OC_L10N by public api call. Refs issue #8.
Replace call to (private api) OC_User::getHome by public api calls. Refs issue #8.
Replace DB private api calls by public calls. Refs issue #8.