1. change arguments' order in slice and getForeign;
2. add created_time and lastmodified_time support;
2. fix some bug when save.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>