Added optional logging posibility.
Added missing LICENSE.md file
Dispatch events before and after persisting objects
Interface that about objects must implement now