Code refactoring of quest definition and xml parsing.
closes #45.