Use ExposedPort.toString() in serialization

Changed type of parsing exception, added test and javadoc.
Merge pull request #75 from albers/exposed-port

Use ExposedPort.toString() in serialization