Pulling in some patterns from Backbone.Model.