add css id to the star used for marking

Can't automatically prevent the star from being affected by image resize
and other CSS properties, as even weirder things happen to it when we
try. However, this will give users the ability to fix it themselves.
change out of temp media folder before deleting it

In some cases, not doing so could cause a "this file is being used by
another process" error.
prevent profiles from getting out of sync when rename fails

If there is an error in renaming the folder, don't write the new profile
name to the database.
update note type on apkg import when only templates have changed

Previously, it only updated if card/note count was different, even if
the templates / styling information had been updated.