Adds simple database parser, fixes in intensity measures

This PR implements a new parser for building a ground motion database from a combination of csv (for metadata) and set of single-column ascii files for the records.

The PR also fixes several intensity measures following corrections from Cecilia Nievas, including modifications to GMRotDpp due to changes in the behaviour of the scoreatpercentile function.