You are exactly doing what I was wondering about!
Our school has come from a Sharepoint background and we have lots of "static" courses. Staff have not taken to Moodle mainly because all their pupil documents are stored in Sharepoint. I am no coder but I am very interested in what you are doing. How do you manage permissions on docs stored in Sharepoint when accessing them from Moodle for instance?