Zanata spa

Again this needs to be refactored to run just one query instead of one per iteration. Can put a TODO tag now and fix later