Fix up loader a bit, and get Robolectric working with Gradle.