Added Background Agent Support

Added Background Agent support but it does not do anything yet since our
msg receive system does not support it yet.