Sets up the application filesystem.