added port check, loading viewer configuration, loading all static files on server start in memory.