Feature/resource cache configuration

* make the threshold configurable using a new Readium option
* in the absence of configuration option, try to determine the value
 based on browser's heap statistics before falling back to the default
 value of 100 MB.