Point main script to index in lib.
Added commands to lib.
Moved IRC to client.