add option of puma control port.  remove TMP_DIR global constant