Appfog push

readied for Appfog
modularized handleMessage