Use the new tldap methods.

Previously karaage depended on placard, however this also pulled in
stuff that isn't appropriate for karaage anymore. e.g. tests. Moved
this to tldap.

This change doesn't yet handle upgrading tldap_counters correctly. That
is complicated by the fact the migrations live in placard, which is no
longer in INSTALLED_APPS.

Change-Id: Ib1997dd030041a28e3ada16ff04691f18859edf2
Add missing url_with_param_node

karaage-admin requires this template tag.

Change-Id: I5486927a8a8ccc0f52ac63f51c627536846143c3
Redo institute models move app.

Django got confused and though people.institute was an old content type
after the people app migration, and prompted the user to delete them.

This is because the contenttypes don't get renamed until the institutes
migration, which hasn't happened yet.

Move all the migrations to the people model, and have the institutes
migration depend on the people migration.

Change-Id: I62e90252e20874a4436fe7353228bb9e07381898
Fix problems with migrations.

Try to cope better if things aren't exactly as we expect. e.g. deleted
accounts or LDAP entries can't be found.

Change-Id: I42131ddf53b1eeedd488fcc8c7f3f6c0f618500e
Remove reference to gid

It no longer exists.

Change-Id: Ib4e69bc7c0fe5642baba3802e47b84ba215452e5
Add dependancies in migrations.

Change-Id: I7e2612290035f3513250f2776486473ffb875792
Make software group optional.

Not every software package requires a group.

Change-Id: I9f4bd80f892a5d6d3807b0f2387f466e6421fe7d
Fix software group migrations

Change-Id: I75513403fa2b056aa56f05373d6a81ff77f4aab1
General cleanup.

Change-Id: Ia2559f27732a803e2ba1facfd1c2c3ab4d4dbfe6
Detect all accounts.

Some accounts are people, for legacy reasons. Make sure we detect them.
Required for uprades to work properly, in particularly we need to be
able to tell if the account is locked or not.

Change-Id: I7e806838839174155d383ee2d40933db0354ae81
Add migration to initialize counters.

This change was omitted from b9b479935df46496140f45c017f5b5f874ddf525.

Change-Id: I1448235d736cc557210b590ff8e9e5f5d725f36c
Don't change shell if account is locked.

This means we have to keep track of if the account is locked or not.

Also display if account is locked or not in person details.

Change-Id: I0e502326d5f64f08e39fbb949259178b81427a62
Tidy code.

Change-Id: I752c302c85037909aa9c95090371e9030f0ff915