Add local variable and getter for clientId to resource server

I needed access to the client ID from the resource server for the application I'm creating, I'm assuming this might be useful to others.