Fixed rule loading so that it uses the same parser instance for resident rules
as well as rules that have been uploaded for execution.  This fix is necessary
to ensure that errors in uploaded rules are properly detected and reported.

Change-Id: I4764eb94ad1d06b8e338a77c1058acdf828945fb