Add author FOAF check in model

- Also fixed some unit tests (use get_or_create to create an Author
from a User)
- Added unit tests for FOAF check