Add preview feature to backend

Start adding API's needed to allow preview feature on front end.

Outstanding work:
- [x] Store location of frontend somewhere in backend. Use this for redirect.