Add loading plugins in console mode (closes #286)