Added .gitignore for .build dirs and continued code reorg.