Imported some more classes from XBMC
Ported bookmarking functions and made them profile-specific.
Ported some more util classes from XBMC