fixing bug in action::execute - it wouldn't work when executed outside an HTTP request (from the timeout sweeper). Now timeout tasks will have a null user_id which is not ideal. We might want to pass on the trigger type (time) to the case log entry to more clearly indicate when an action timed out.
porting queries in the 2.0 version of workflow from postgres to oracle. Moving common query workflow::case::fsm::get_state_info_not_cached.select_state_info into shared xql file.