Add switch for Stage1Layer2 emulator; add .gitignore file