Added support for getting assigned port number, if we start the jetty with port number '0'.

* Added unit test and get port code.