Add int32 id generator, add BaseEntity class
improved pool implementation (added IPoolable, IUnique), added tests