added base rest serbice for common operations
refactor based on core changes
bug fixes