Fixes syncing.

Reintroduces environment variable for God, makes all methods public in
Resource model (Review) and refines update_sequence_number check.