Added syspref: housebound: check previous issues

- Added syspref: useHouseboundCheckPrevious (check whether item was
  previously issued to housebound user)?
- Implemented check in Circulation.pm for this prior to each issue.
- Added authorised values and borrower categories to .sql atomicupdate

Conflicts:
	C4/Circulation.pm
	koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
(Additional contribution from: Alex Sassmannshausen)

http://bugs.koha-community.org/show_bug.cgi?id=5670
Remove unused variables from C4::Housebound

localized lexical vars to where they are used
Avoided unnecessary method calls
Remove a finish
No need to interpolate to constant strings
Fix some violations of perlstyle

http://bugs.koha-community.org/show_bug.cgi?id=5670
Commit Housebound Updates

http://bugs.koha-community.org/show_bug.cgi?id=5670
Tests: add Housebound unit tests.
Housebound: allow for CHO, DELIV and VOL selection

- Add procedures to retrieve 'chooser' and 'deliverer' borrowers as well
  as volunteers.
- Use the procedures in houseboundinstances.pl.
Clarify wording on role of volunteers.
Housebound: Fix regression in housebound.

- Fix regression in update/creation functionality.
housebound: re-apply style improvements.
housebound: get datepicker working.
housebound: catch references to undefined vars.
Housebound: improve documentation.

* C4/Housebound.pm: throughout, add or improve documentation.
Housebound: use @EXPORT_OK instead of @EXPORT.

* C4/Housebound.pm: move from @EXPORT to @EXPORT_OK.
* members/housebound.pl: import specific procedures to be used.
* members/houseboundedit.pl: as above.
* members/houseboundinstances.pl: as above
* t/Housebound.t: import procedures to be tested explicitly.
Housebound: push $ENV{DEBUG} calls to templates.

* members/housebound.pl: push $ENV{DEBUG} calls to templates.
* members/houseboundedit.pl: the same.
* members/houseboundinstances.pl:  the same.
Housebound: add copyright for PTFS-Europe.

* C4/Housebound.pm: add copyright for PTFS-Europe.
* members/housebound.pl: the same.
* members/houseboundedit.pl: the same.
* members/houseboundinstances.pl: the same.
Housebound: tidy .tt files, add form validation.

* koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt:
  remove comments.
* koha-tmpl/intranet-tmpl/prog/en/modules/members/houseboundedit.tt:
  remove comments, add form validation.
* koha-tmpl/intranet-tmpl/prog/en/modules/members/houseboundinstances.tt:
  as above.
Housebound: Use authorised_values, refactor.

* members/housebound.pl:
  - pass housebound hashref instead of scalars to $template->param.
* koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt:
  - use authorised_values for 'Delivery day' and 'Frequency' fields.
  - use housebound hashref instead of individual scalars.
* members/houseboundedit.pl:
  - use authorised values to provide day & frequency options.
  - pass housebound hashref instead of scalars to $template->param.
* koha-tmpl/intranet-tmpl/prog/en/modules/members/houseboundedit.tt
  - use authorised_values for 'Delivery day' and 'Frequency' fields.
  - use housebound hashref instead of individual scalars.
* members/houseboundinstances.pl
  - drop loops and variables that can more elegantly be covered in
    template (idel, icho, ivol, am, pm).
  - pass housebound hashref instead of scalars to $template->param.
* koha-tmpl/intranet-tmpl/prog/en/modules/members/houseboundinstances.tt
  - implement loops to auto-select current deliverer, volunteer,
    chooser, am/pm.
  - use housebound hashref instead of individual scalars.