refs #8.  Implement the process of collection editing operation.
refs #8. add a collection template.
#refs #8. Remove some unused source code, fixed some bugs.
Merge pull request #13 from jcrom/master

merge with trunk