Major overhaul of AuthServiceProxy

I've made a rather big refactoring of AuthServiceProxy. The code became (at my opinion) much cleaner, and the ability to substitute responses from daemon with custom ones was added to make testing easier.
Unfortunately I couldn't preserve commit history because the file has been renamed few times in my repo, but you can look at them in my master branch.