chenglou/RCSS — pull request #35 by crm416 (2014-08-19 02:29:16+00:00)
Title: Smart style injection

(Creating this PR to centralize discussion--no problem if we don't end up merging all of it in.)

This commit avoids re-injecting styles by maintaining two registries: one that contains _all_ RCSS style objects, and one that contains the hashes of those that have already been injected. It also contains a `syncClasses` function that can be called on the client-side to fill up the "already injected" registry with styles that may have been passed down from the server.

A few things to note:

1. I added an `injectStyle` function that takes a `styleId` and injects only that style (if it hasn't been injected).
2. To avoid adding a new `