removed app.run in favor of switch statement; changed json serialization calls to be sync; added explicit startup class declaration via assembly attribute