Part of ENG-4269.
Mostly copied logic from http::handlers::blob::assign_holder_handler and http::handlers::blob::remove_holder_handler - but now with using the new database methods
Partially addresses the TODO from http::handlers::blob::remove_holder_handler - auto deletion of orphaned blobs can now be disabled
Depends on D8455.