Add setup command support, add a test app and improve server managment