Bastion: replace function declarations with function expressions
Best practices are to use function expressions instead of declarations. We are using function declarations as success and error callbacks mainly.
We should also document this in the readme file.
Imported from https://trello.com/c/UFjU3xw4/382-bastion-replace-function-declarations-with-function-expressions_