Site issues

Fix up a number of old issues from the original AIG issue tracker: https://github.com/app-inventor-gallery/aig/issues?state=open. Based off of the currently unmerged code from this pull request: https://github.com/karuto/aig/pull/8.