Added APPLICATION_ROOT key value to flask config
Converted to using url_for for URI mappings
Updated returned search term URI