Subscriptions javascript code updated.

Most of the javascript code like sending ajax requests for subscribing,
unsubscribing, getting user subscribed content list, updating
subscription types and attaching different events on different elements.

Now remains the migrating process and final decision on how to add and
store subscriptions content.
Merge branch 'master' of https://github.com/arslancb/clipbucket