add JS & shell PHP functions for liking, flagging, and getting states
Merge pull request #3 from borkweb/v1

add JS & shell PHP functions for liking, flagging, and getting states