Set form action attribute correctly

Set action attribute of edit/new form so that the forms work correctly on subsites of multisite installs. Fixes #1