eshell: Move eshell code to apps