Add getMapping and alias methods

These methods are used in a migration script I'm building, so having them in here would be grate. I also added linting config and some unit tests (for the methods that I added).