Updated REST client, bug fix in router.php

Updated spms.js, updated restTest.html and bug fix getAllResults in
router.php