fix($state): didn't comply to inherit parameter

$state.href didn't comply to inherit parameter. Parameters aren't
inherited anymore when inherit: false (default)
Merge pull request #970 from dutchcoders/master

$state.href inherit parameter fix
refactor($state): disentangling retry logic
 - Dropping unnecessary variable assignments
 - Misc. cleanup
Automatically rewritten for npm.