Allow configuring the range (max items per page in listings)

Right now this is what you are forced to do to override the limit of 50:

```php
<?php

/**
 * @file
 * Contains RestfulExampleArticlesResource.
 */

class RestfulPerformanceArticlesResource__1_0 extends RestfulEntityBaseNode {
  
  protected $range = 300;

  /**
   * Overrides RestfulExampleArticlesResource::publicFieldsInfo().
   */
  public function publicFieldsInfo() {
    $public_fields = parent::publicFieldsInfo();

    $public_fields['body'] = array(
      'property' => 'body',
      'sub_property' => 'value',
    );

    return $public_fields;
  }
}
```
1) If range is wrong we should throw an exception
2) we shouldn't allow a range higher than $range as it may be abused by malicious users

‫ב-1 בדצמ 2014, בשעה 08:39, ‏Mateu Aguiló Bosch <notifications@github.com> כתב/ה:‬

> In plugins/restful/RestfulBase.php:
> 
> > @@ -661,6 +661,10 @@ public function process($path = '', array $request = array(), $method = \Restful
> >      $this->setMethod($method);
> >      $this->setPath($path);
> >      $this->setRequest($request);
> > +    if (!empty($request['range'])) {
> is this range being taken into account in the cache?
> 
> Everything in the query string is taken into account in the cache ID generation.
> 
> I would also verify is_int of the value.
> 
> Good point.
> 
> —
> Reply to this email directly or view it on GitHub.
>