Broken-Theme Fixes

Thanks.
url http://localhost:8080/c/portal/login won't be the same for every instance, we should try and avoid hardcoding base urls. See:
https://www.liferay.com/web/erik.andersson/blog/-/blogs/using-themedisplay-in-javascript-but-be-aware-of-types
http://www.liferay.com/community/forums/-/message_boards/message/15173920