         if opts.authenticationInterface
             @addDirectory "src/server/applications/authentication_interface", opts.mountPoint + "/authenticate"
             @addDirectory "src/server/applications/password_reset", opts.mountPoint + "/password_reset"
-            #@addDirectory "src/server/applications/landing_page", opts.mountPoint + "/landing_page"
-
+            @addDirectory "src/server/applications/landing_page", opts.mountPoint + "/landing_page"
 
     # Reads the configuration files app_config.json and deployment_config.json
     configure : (path) ->

Fs          = require('fs')
Path        = require('path')

class ApplicationManager
    constructor : (paths) ->
        @applications = {}
        @load paths if paths?
        @addDirectory "src/server/applications/admin_interface"

    load : (paths) ->
        #thisObj = this
        for path in paths
            stats = Fs.lstatSync(path)
            #Check for symlink
            if stats.isFile()
                @addFile path
            else if stats.isDirectory()
                @walk path, this, (appPath, thisObj) ->
                    thisObj.addDirectory appPath
                
    # Adds an html application to the application manager
    addFile : (path) ->

        opts.entryPoint = path
        @add opts


    #Walks a path recursively and finds all CloudBrowser applications
    walk : (path) =>

        readDirDelay = @delay.add()

        friendlyLstat = (filename, cb) ->
            Fs.lstat filename, (err, stats) ->
                stats.filename = filename
                if err then cb err
                else cb err, stats

        statDirEntry = (filename) =>
            lstatDelay = @delay.add()
            friendlyLstat filename, (err, stats) =>
                if err then throw err
                if stats.isDirectory()
                    @walk stats.filename
                else if /app_config\.json$/.test stats.filename
                    @addDirectory path
                lstatDelay()

        Fs.readdir path, (err, list) =>
            if err then throw err
            for filename in list
                filename = Path.resolve path, filename
                statDirEntry filename
            readDirDelay()
                        

    # Configures and adds a CloudBrowser application to the application manager 
    addDirectory : (path, mountPoint) ->
