Refine Source in Unimportant Aspect

- The `self.app` should not be usable under the app factory usage. The context-based `current_app` should be used instead of it.
- The `setdefault` method of `dict` has return value.
- The `__all__` declares the public interfaces and suppress the warning from the lint utilities.

@lepture Please review the changes. Thanks.