Add setMinScale/setMaxScale options.
Merge remote-tracking branch 'upstream/master'
Remove duplicated code in constructors.
Automatically assign an id to the containing Element if one hasn't been
set.
Merge pull request #15 from yeroc/master

Add setMinScale/setMaxScale options.