added and refactored some graph query stuff (moved ad-hoc queries to an ad-hoc query class, added util methods for creating node/edge/graph dicts from ad-hoc query results).  added page for displaying categories and writeups.  minor updates to graph display css.