Ae dehardcode target pos mode rotation

The main changes here are:
 - The hard-coded rotation has been changed to use the same Euler angles as used in the geometry
 - ```target``` and ```source``` mode have been combined to avoid duplicating code
 - There is a script to plot initial target positions

I will merge this in straightaway