Add convenience variables for custom views.

It can be very difficult to get the current users username or even
tell if the user is authenticated or not from within a custom view.
I've added @authenticated and @authenticated_username instance
variables to hopefully simplify custom view creation.
Add authenticated? and authenticated_user helpers
Add support for allowed_service_ips whitelist.

allowed_service_ips can be set in config.yml to limit service
validations to a certain set of IPs or IP ranges. This prevents
just any site from being able to grab potentially sensitive
personal information.
Fix #147
Merge pull request #138 from biola/variables_for_custom_views

Add convenience variables for custom views.
ignore vagrant files

Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
run rake appraisal:install to update gemfiles

Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
fix requirement of hash_with_indifferent_access

Rails 2.3 doesn't to have this file in this
location and pulling in core_ext gets the file
in all current versions of ActiveSupport.

Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
Merge branch 'allowed_service_ips'

Conflicts:
	lib/casserver/server.rb
	spec/spec_helper.rb
Fix autoloading of authenticators.

Authenticator autoloads must be defined before Server.init_authenticators!
is run Also the active_directory_ldap autoload entry was incorrectly
pointing to a directory instead of the actual file.
Also fix active_directory_ldap path in spec_helper

Should have caught this in the last commit. Oh well.
Merge pull request #157 from biola/fix_authenticators_autoload

Fix autoloading of authenticators
Merge pull request #158 from mitfik/9cb099ddd5b8115f69dbbb4958f07ac3cc08e6c4

Fix #147