Move key creation until after installation.

Currently, key creation happens before installation.  That can lead to the key being created owned by root:root rather than mongodb:mongodb, making the key unreadable and making it impossible for the DB to start.  Rearranging key creation to happen after installation fixes this.