Refactored mem clearing to its own function
Merge branch 'dock_refactor'
Remove deprecated reference to risiko in comments
Explicit rather than implicit loading of impact functions. Added load_plugins method to api. This lets the client software (e.g. dock) control when plugins are actually loaded.