AppServer now has a main method to run an AppServer