csharp: Add GetIdentity to Device class
java: Move exception classes out of IPConnection class