Fix average importance.

Make sure not to make the importance lower than the todos own
importance due to the its parents.

Test case and code were both wrong.
Introduce LimitFilter which truncates todolist at given number.
Ignore non-word characters at end of project and context names.