Some refactorings, added IOC handling of DBContext, Added ajax fetching of notifications