Core pr 4

Fixes reservation to only mark items that are reservable and fixed URL encoding for online links. Cleaned up the JS and fixes bugs.