almost done

1. change init method
2. fail goes to errorPageUrl
3. success but with error code show notification
4. jquery 1.7 use deferred.pipe instead of .then