Made http auth optional
changed before_filter to before_action

according to https://github.com/rails/rails/commit/9d62e04838f01f5589fa50b0baa480d60c815e2c