typeahead for projects, use dbname for permalinks
minor tweaks and fixes