Add ddlockd

Somewhere in the great Github migration of 2012, we lost ddlockd. This
is a straight copy from the most recent version I can find.
(Bug 4788) Add test for entry lookup.
(Bug 4788) If we guessed the anum, then save it as "untrusted_anum"

Intead of trusting the anum based on the ditemid, save it under
a different name, which we can later use to compare against the actual
anum we fetched from the database
(Bug 3994) : New "deleted account" page

* Shows an initial paragraph according to your relationship with the
   account and whether it is a community

* Shows the reason for deletion if there is one

* Shows the bit about being notified upon purge if you are logged in and
   are not the owner/admin.
(Bug 3994) : Don't offer to track protected usernames.
(Bug 3994) : Now show "relationship text" & link.

If the user has granted access to or subscribes to or is a member of
the deleted account, tell them this and offer a link to change that.
(Bug 3994) : Tidied up indents, removed trailing spaces
(Bug 3994) : Changes as requested in code review

* Cleanup of spaces & linebreaks

* Changed $dbr to $dbcr

* Only look up the deleter in the db when it's a community

* Tweak to page formatting
Merge branch 'anum-bug4788' into develop

* anum-bug4788:
  (Bug 4788) If we guessed the anum, then save it as "untrusted_anum"
  (Bug 4788) Add test for entry lookup.
Merge branch 'release-1.12' into develop

* release-1.12:
  Add ddlockd
Merge branch 'release-1.12' into develop

* release-1.12:
  Add ddlockd
(Bug 4816) Use .prop instead of .attr

Adjustment for jQuery 1.6+, which makes .attr applicable only for HTML
attributes and .prop the one to use for Javascript properties.
Merge pull request #200 from afuna/randomicon-bug4816

(Bug 4816) Use .prop instead of .attr
Merge branch 'release-1.13' into develop

* release-1.13:
  (Bug 4816) Use .prop instead of .attr
(Bug 3994) : Changed interpolated variables to bound params in db query
(Bug 3994) : Corrected SecurityAttributeChanged.pm for best practice as per pull request comments

* Changed $dbr to $dbcr for cluster reader

* Changed interpolated variables to bound parameters in db query.
(Bug 4819) Reset width/height to auto to override HTML attribute

Reset the width/height to auto first before applying a max-width/height.
This is to fix distortion of non-square images (where one dimension >
75px)
Merge pull request #201 from afuna/contextual-nonsquare-bug4819

(Bug 4819) Reset width/height to auto to override HTML attribute
(Bug 4818) Add groups and xpost metadata to Entry::print_metadata
Merge pull request #202 from afuna/xpost-links-bug4818

(Bug 4818) Add groups and xpost metadata to Entry::print_metadata