This type of dynamic canister management is what I’ve been doing with CanDB. In fact, just this past week I ran some tests uploading chunked video to the IC, and then streaming that same video from the IC using the underlying data structures in CanDB.
CanDB is currently in alpha - I’d be happy to talk with you more if you’re interested in using it.
If you’re looking for an example to roll your own code off of, I’d recommend reading through of @peterparker’s great blog posts on this topic.
Worth to note that the Motoko Playground now also supports actor classes, kind of handy to give a try to the pattern.
Regarding installing code, I noticed some new cool patterns in this Wednesday public global R&D, notably the fact that a manager can upgrade the code of its children. Did not gave it a try, don’t even know if it’s released yet but, look super promising.