Updated the code and added Asset model.

Asset model makes sure resources are fetched from the right URL.