Enabling stats for self-hosted sites:

 * API issue was fixed server-side so calls now work for Jetpack sites.
 * Fixed up a few issues with the workflow for signing in to WordPress.com for a Jetpack site to access stats.
 * Fixed #115 by adding infinite scroll support to the media library picker.