Add node id -> node type bitmap to effectively run edge restriction
during graph traversals.
This is still WIP because I am waiting on full scale test results. Also, this
diff is only about *loading/storing* the bitmap, not using it, because it needs
to be merged with recent D1700 work (in a separate diff).
Closes T1902.
I think it will be better to create a swh.auth.django.models module and put that model in it.
In a similar manner, authentication backends should be put in a swh.auth.django.backends (in an other diff of course).