Basic functionality is there

Closh runs the specified program the specified number of time. The only
thing left to do is implement the timeout and add in threads... The
thread part is probably the hardest.