move all application data and scripts inside app dir and fix kernel instance to load files from the app dir