Made GetDocPackage return err instead of panic, for status page.

Update to new go.tools api.
Fix cursor target x not being updated.