Fixes #39 : search and autocomplete are now case insensitive

Move filterTasks from controllers to todolib
Add unit testing on filters