add property handler stuff
Merge pull request #6 from tim-loh/propertyhandlers

Add property handler code and support simple length properties