Ensure consistent repository use

- Add gitattributes to enforce LF line endings.
- Update gitignore to ensure the lib folder remains empty (except for a
possible future README markdown document to explain why it is empty).