Application Timeout to ease testing

The app terminates after a defined timeout controlled from the
command-line. Usefull for testing purposes.