Implement url() helper for proper url generating for pages (with
params). Fix big bugs regarding element copying in updatePage and other
parts.