fix next/previous links in pagination

typo: pagination
fix URL handling between states

- properly sets URL when linking from search results to detail view
remove error view controller
set state from map controller

- updated map controller to use ui-router to navigate to details view
update script comments
regenerated script
regenerated demo pages