Adding credentials file parsing

Take 2.