Added Code First Database with entities.

Refactored Authentication into separate class