Flexible restfull api with portable client side UI