Merge pull request #31 from knd/develop

rename upgrade and upgrade task packages
Update UpgradeTask.java

Return cwd correctly
basic query optimization stuff
[user attribution] initial commit + upgrade task