Resolve more issues related to restoring view state.

Also adds logging in the debug variant via `BuildConfig.DEBUG`.
Starts publishing both release and debug variants so that applications
can make use of the debug variant if desired.

Introduces support-annotations dependency so that host applications
can receive `@Nullable` and `@NonNull` hints in the IDE.