polygons directive

This is pending the merge of issue #918 , so the amount of changes should drop significantly once it is merged.
setChildScope's values only if they come from model alone and $parent scope's value does not evaluate to function or object.