Add check for max errors count, move timer interval to define
Merge branch 'master' of github.com:zigdanis/PushService