Self restarting router

This adds a feature that restarts the router when a router script is executed after the router has already been started.