Add WebSecurity changes and Repository<T> classes