Initially add new post type: portfolio.

Fix some bugs.