Make API requests "wake up" user sessions

The CodeIgniter sessions were only getting their last_activity value
set when a page request was made, and our Angular APIs weren't making
page requests, so sessions could timeout even when the user was quite
active. With this change, Angular API calls update last_activity.