Adding custom properties or metadata to Layers?

Take a look on the following threads: