Fixed the hash regex to support complex view id
Made it possible to configure listen port