Factor HasArgs into ApplicationImpl

Instead of having everyone re-implement this feature, push it into ApplicationImpl.

R=davemoore@chromium.org

Review URL: https://codereview.chromium.org/681943002