Let carousel items and their positions be accessed through carousel object
Converted tabs to spaces
Fixed negative frontIndex, added functions for finding item closest to the front, added onUpdated event callback
Changed element class naming to "cloud9-" scheme