Moved gromos87 writing code into fileio module

Fixed copyright, include guards, uncrustify. Removed
a useless #include and comment. Renamed files and functions
to avoid cryptic "gms" abbreviation.

Change-Id: I17422d9a46398162710a6e768aeb5c2a5e5c5d8f