create main loop that understands basic commands

Basic commands included in the main loop include things like file
reading, writing, and quitting as well as quit confirmation. The
interprets user commands by looking at the first word of their input and
comparing it against known "vocabulary" for each command.

Signed-off-by: Ricky Ayoub <vgmoose@gmail.com>