API: fix variable name, state is now stored in $new_state, not $value
Frontend: update state dependend code to account for new starred state
Frontend: update star icon based on item state
Frontend: add click handler to star icon

* if item is unread  => move to starred state
* if item is read    => move to starred state
* if item is starred => move to read state