Move command utility functions into Parser.

This way, the commands are allocated and freed in the same file.
Plus, simpler this way.
Add .gitignore
Refactor long for-loop statement into a while-loop
Use strncpy correctly (maybe) in Editor.