Add 'mode' config option

The function parameter 'mode' value is now loaded from config file
The default 'mode' is set to 'shortcode'