Fix indents and code style of initscript template
Increment PORT when it is provided and preserve the new value in the initscript
Add port attribute for testing
Fix references to port in environment_attributes