Ignore object files.
Remove generated memory map files.
Drop support for CMake.
Remove trailing newlines from files.
Remove unused code.
Clean up style a bit.