Likes: Fixes issues where likes don't load.

- Moved the scripts to the bottom and the style to the top.
- Makes sure that the likes work as expected by making sure that the
master iframe is loaded after scripts are loaded.
props @zinigor for contributions to this PR.
Adds missing post restore endpoint in v1.1
Merge pull request #1395 from Automattic/add/restore-post-v1-1

Adds missing post restore endpoint in v1.1 props @rralian.
Merge pull request #1331 from Automattic/likes/fix-script-queue

Likes: Moved the call to enqueue_scripts into the action body making sure that scripts get loaded and that the master iframe is created after the scripts get added to the page.  props @zinigor
Likes: Added Portfolio Project check to make settings work properly

The Project Likes checkbox in the sharing settings did not have
any effect because the post's custom type was never checked.
Likes: updated the code to accept arbitrary CPTs

This allows enabling and disabling likes for any custom post
type, not only Portfolio Projects as done previously.