Pass in the current layer and the state name to dynamic state properties.
add todo
Merge branch 'framer3' of github.com:koenbok/Framer into framer3
Merge branch 'tisho/pass-layer-into-state-property-value-functions' of github.com:tisho/Framer into tisho-tisho/pass-layer-into-state-property-value-functions

Conflicts:
	framer/LayerStates.coffee
Merge branch 'tisho-tisho/pass-layer-into-state-property-value-functions' into framer3