completed add, edit and index actions for threads and nodes

Right now view gives a <pre></pre> listing of the entire relation in the
index. Got to work on that.