Handles completed tasks; Removed ResultLock stuff

1. Modified JDOM reading and writing part, to incorporated isDone of
Task;
2. Previous getAllTasks is now getAllDoneTask;
3. Since we discard the idea of instant search & arrow key, all
ResultLock related stuff are removed.