Added process with the real time cost calculation state
 in creating Parameter Indexes of a rule.

Signed-off-by: shujingke <rainkekekeke@gmail.com>
Coding to enable borrow heuristics from the forward rule for recursive rules
Finished borrowing cost heuristics from forward rule
Added functions to query specific nodes from Atomspace by calling pattern matching
Added auto generate link for a state in a planning step, as a condition to execute pattern matching
reconstructing the planning framework.. don't pull. cannot compile
removing all the over designs for the planner. losing weight for the planner. cannot compile yet. don't pull this.
Fixing some logic after removing all the over designs. Cannot comipl yet, don't pull this.
Optimized some planning logic by adjusting the structure of nested big amount of " if else" .
Added planning logic that choosing the best Binding with the least affect when there are some states have been solved in this rule node.
Implemented planning logic: check what other already achieved states would be affected by applying this rule, and rebuild their connections
check if some grounded precondition state can be satisfied by states generated by previous steps and connect them
Added forwardEffectState for a state node. Check real time new generated preconditions satisfied or not.
Added executing actions in the imaginary spacemap when some planning effects involve changes to spacemap
Added location tracking history for every object in the spacemap for undo actions when a planning step fails and need to return to the previous steps
Record the original values of states in the effect list of a rule , before it take effect, for easy rollback.
Implemented execute and undo in the imaginary spacemap. Cannot compile yet.
fixed all compile errors.
Merge branch 'master' of https://github.com/opencog/opencog into shujing
Merge pull request #222 from shujingke/shujing

Implemented more functions in the new planner.