moving validation rules to restmodule.
fixed series statistics query.
moved seriesmodule to restmodule