Update apt_repository for latest Salt API

I merged some of the changes from https://github.com/bclermont/states/blob/master/states/_states/apt_repository.py