[SERVER-1698] A db & repl command to check if the client is authorized. 

The commit implements a database and repl command for checking if the current session to the database is authorized/authenticated. The accompanying test case was also added. 

Thanks,
- Brian Gianforcaro