Cleanup gitignore file in framework and remove obsolete directories