Update rest.php and test pages to support limit param and range headers

Removed the buttons from the REST test pages because they are currently not useful.