Started the rules engine, nearly have order going through.

Signed-off-by: Thomas <Thomas@tommyt.com.au>