Refactorings, logic change.

1. core  - added functionality to add properties to plugins
2. core  - refactored plugin adding.
3. chain - added functionality to stop chaining properties with __chain value set to false.
4. chain - wrapper plugin to closure
5. core  - wrapped plugin to closure