Entity manager 17-12-14

Entity manager almost finnished
basePool and pool added