Fix some bugs in unit test scripts; Add more serverside functionality for reservation scheduling UI