Integrating Answer Set Modules into Agent Programs