Added the get_next_open_port function.
Merge branch 'get-open-port' into develop