Move shakemap file to solver directory.

It's not really a shared file, as it isn't compiled into anything else.
Plus, it links against the solver static library.
Combine duplicate get_global subroutines.

These are all the same save for one loop bound. But that nested loop can
be re-written as a single loop that works for all cases.