Refactor position code into utils.

- Per request, create helper methods for calculating a points position on a
scaled/transformed canvas.
- Create helper for finding the center point of a relation line.