Seperated Core stuff from Api stuff for using the core parts as a facade ontop of AspNetIdentity