Use owncloud jobs for cronjob
Use owncloud mailingsystem for email_IntMsg
Use owncloud mailingsystem for email()
Use public dbinterface instead of internal
remove unnecessary functions
fix db_get_group_by_path depending on a logged on user
add some debug logging