Add a detached_session option to server to allow page reloading without continuing program + Small fixes