Repository integration

Still need to make unit tests pass.
Unit tests fixed for repository integration.

signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>