Modified model definitions to use dicts

- earthquake.model: definitions is now a list of dicts
- earthquake.model: started function to load definitions from a file
- earthquake.catalog: added file.close()