IP address logging on sign-in

This adds a configurable option to log the IP address of a user on sign-in. Specs for Rails3 and Rails3-Mongoid included, docs updated... not sure if I covered all the places for writing specs, but the specs are passing and it's functional on our site. Happy to make any mods that are required to merge into main tree.