added some checks on malformed posts & started page handling

* added a check over item type and if page go ahead;
* added a check over empty titles adding 'no name' to them;
* added a check on drafts posts, preventing the post to be automatically published;
* starting to arrange some code on page handling in order to publish them as well.