bad list as default arg reference
be explicit about using the right id for getting sync logs

- fixes some odd race conditions in tests where two sync logs were
  created with the exact same timestamp and the wrong one would get
  referenced
Merge pull request #81 from dimagi/test-fixes

Test fixes
fix bug in rebuild_case and add test that would have caught it
Merge pull request #82 from dimagi/cz

fix bug in rebuild_case and add test that would have caught it
Merge branch 'master' into case_multimedia
damn it, that fixed the poblem.