Initial support for reversing

It sort of works, but it's terrible. To really get it right I'll
probably need to implement Reeds-Shepp