#408. Added post types settings, removed post types from appearance tab, fixed errors, code optimisation.
#408. Merge with last changes.