Refactor FolderMenuCommands for better type safety
Correct BuildAction after moving to folder

Fix #765.
Address reviews
Merge pull request #809 from dungpa/move-to-folder

Fix for move to folder