spring-boot-1275: write server port to file

add listener which will write embedded server port to a file

Fixes gh-1275
Wouldn't "application.port" be a better default? There's already "application.pid", "application.properties", "application.yml" etc.