Move security views registering and Blueprint creation into separate functions to allow flask Babel integration