Added ability to configure application ports in the apps script