Loan rule fixes

Make sure loan rules aren't confused when there are multiple servers
running.
Fix parsing of ranges for loan rules