Stargazer (*Just for review, Do not merge*)

The logic for retrieving the starred modules for a particular user is incorrect... I have commented on  the respective scripts.
@oalders : I am working on the same, though if possible please do check the comments. 
Thanks a lot :)
@oalders: Yeah, this is not mine. I was refering to the favorites code while working on starring. This code needs a bunch of cleaning.
Sorry for the inconvenience. I'll check all the changes that are referenced. Thanks a lot!