SSL config fix
Added MongoUserProvider to perform authentication, also added api test and some changes in views.