Fixup migrations.

Fixes migration from an empty database.  Closes #206

- pbsmoab app wasn't migrating due to a missing models.py file.
- project table migration was not happening in the correct order.
- some data migrations depended on a optional tables, they now check for
  the existence of the tables before trying to copy the data.
- the django_admin_log table was not being created