add getLink method

to enable retrieving the URI of folder items, so they can be displayed
remotely. also port to RPC module pattern. originially authored by felix
jendrusch.

Jira-issue: WP-1150
proper paths for vendor js deps in mediacontent test html

Jira-issue: WP-1150