You've tagged ruby-on-rails, so I guess this is going to be a rails app. Are you planning on implementing your own authentication and login system or are you going to use a gem/plugin. I ask because I wouldn't have thought the range of actions would be the tricky part if the actions were all defined in the/a controller. For example with devise adding:
before_filter :authenticate_user!
in the controller would ensure that all the actions would require a login. This can be refined further using :except like
before_filter :authenticate_user!, :except => [:index, :show]
With that in mind we only really need to think about the ajax parts. You could perhaps achieve this using js.erb templates and using respond_to in the method, for example
def log_in
respond_to do |f|
# gracefully fallback!
f.html { redirect_to new_user_session_path }
# or do something snazy..
f.js
end
end
The hard part might actually be getting the ajax log in part working, but hopefully what I've said might help the thought process.
Ryan Bates has done a good screencast on jQuery with Rails but I can't post the link...