Make user model loading work for Django 1.7

Importing `tastypie.compat` under Django 1.7 would trigger a

```
RuntimeError: App registry isn't ready yet.
```

This PR puts the user model loading into functions to be called later which makes it work under Django 1.7.