Improved lib-settings usage and added defaults for media. Added support for custom media base URL.