Update configure.py to work with flask and paas; use preload.py to support adding applications by manifest url. Works for either packaged apps or hosted apps.