Improve 'due' command

New --detail option
Take notice of --select option
Refactor internal logic to preserve entries