Add IP range-based access control

First cut at adding IP range-based access control for your perusal. Will add documentation if this looks good to you or tweak as necessary.