MDL-45843 mod_lti: Updated namespaces and upgrade

Service and resource classes moved into .../local/...
Upgrade SQL moved into a function and unit test created
MDL-45843 mod_lti: Updated lti_tool_proxies table

Added indices and foreign keys to lti_tool_proxies table
MDL-45843 mod_lti: Formatting changes

Fixed formatting and documentation issues