Add completer for project code.

Also refactor parts of the completions methods.