Add ResolveRockUrl(string url) method to both the RockPage and RockBlock controls.  This method is similiar to the ResolveUrl method except that you can also use the '~~' characters to specify the current theme root folder, similiar to how '~' is used to specify the app root folder.