Update interaction APIs to conform to new state machine
Sort starred page into correct date order
Remove unused functions and move interaction functions to top
Remove references to deleted resources
Reorganise javascript functions
Update newly added links to match new HTML