Finished the invite command.

Finished the invite command.
Added accept/deny logic for commands.
Cleaned up some code.