Make it possible to read commands from files

Input can only be read from standard input. Make it possible to also
provide a number of files which can be read from.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>