Fix breakage introduced in fd2a37a.

Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
ContactResource: Use URL helpers when available.

Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
report: Use contact paths w/o .vcf suffix to be more consistent.

Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
Move URL helpers into their own convenience class.

Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
Default to an empty array for children.

This handles the PROPFIND with depth > 0 case.

Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
Pretty print response XML if MEISHI_PRETTY_XML is set to 1

Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
AddressBookResource, PrincipalResource: simplify mtime calculation.

Since ActiveRecord does cascading updates of mtime, let's just use the
computed value on the AddressBook object instead of scanning every
field needlessly.

Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>
Zap unneeded comment.
PrincipalResource: Simplify created_at lookup.

Signed-off-by: Alex Zepeda <alex@inferiorhumanorgans.com>