Use GLib endian macros in bmp-save.c
Rename files, functions, variables, remove globals, indent, foo.