Added counter_cache. Homogenized layout/functionality. Removed jquery-ui.