Firebase adapter

Creating global 'for' variable. Should be 'for (var result ...'.<br>The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.