Merge of static file server into api.js. Updates to gallery.