loading/unloading stuff moved from main to work,
as what needs to be loaded and unloaded quite
depends on the kind of work going on.

Signed-off-by: Leo Bärring <leo.barring@gmail.com>