Update 1.0 branch to allow application name

I know you're far away from the 1.0 branch these days, but performance wise, it's still a lot faster.  I need to have application name available for db monitoring (like you have in 2.x) but with 1.0's speed.  I understand if you don't want to take this change on the old branch, but it adds functionality that I need.