Implementing whoami API to close #3