Composer and configuration options

Add config options for port and socket (from andbristol) and Composer file (from me).