Reengineer scripts for app engine

- Closes #12