panorama-projection: add inverse transforms to core

The core transformation machinery is now abstracted to be work as an isolated
unit of code.