terminal: Put the terminal into its own package and task

It might not necessarily stay in its own package, but this is
a good testbed for our first package. It will however stay in
its own task.