polygons directive

@cthrax @zacronos @aesnyder @gitnik @kandizzy 
This is pending the merge of issue #918 , so the amount of changes should drop significantly once it is merged.