Added support for revoking API keys

Please put the test in brackets. This will improve code clarity.