ENYO-2111: clamp index value for panels before indexChanged is called so inherited kinds are also clamped
Also, modify previous/next to do their own clamping when in this.wrap mode since clamp won't change things.

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)
Change code to use enyo.Object.bindSafely

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)
Merge pull request #13 from enyojs/bindSafely

Switch code to use enyo.Object.bindSafely
Fix enyo.Panels.removeControl -- it was always altering index, even if the panel you were removing wasn't the currently selected one.

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)
Fix previous fix -- moved too quickly and didn't test positive case.  Tested now with Panels sampler and looks good.

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)
Add .jshintrc, make all layout source jshint clean
Fix a few global leak problems found by jshint

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)
Cleanup a few layout samples to remove dead code and prevent duplicate kind definitions

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)
Merge branch 'master' of github.com:enyojs/layout