added authentication support to $firebase. minor fixes.