Rails 4 Integration

Fixed deprecations, added tests and refactored code. 
Added filter for calendar and allowed users to edit settings without providing password.
Management interface needs implementing. Partial(s) could be added to absence view. Rspec tests could be refactored. May be legacy code which can be removed.