[Fix #447] Extract ido config into a module

This should make it simpler to disable ido completely if you want to use
an alternative library (like `icomplete` or `icicles` for instance).