Basic implementation of properties

This includes some great memory leaks and some reentrancy bug (The
creation thereof, not the fixes).