Resource handling improvements

  * layer.pause will pause the layer animation and the particle
    dom modifications, but it will not clear the particle
    animation loops
  * layer.destroy will clear all resouces except the layer object
  * layer methods return this for chaining
  * animationframe requests are cancelled to ensure single
    animation loop per element