Template fix and getMedia cleanup.

Made a few fixes to the login and media-stream templates:
 - Added a few IDs to better manage tabs (on login for example).
 - Changed the ID names of elements in the login form.
 - Clean-up the processing of mediaPath (it was hard-coded).