Angularized dropbox's success and cancel events

replaced javascript events with angular events an examples of accessing
them from the controller