Changed the API slightly for prepareBody hooks, added postValidate hooks, fixed huge bug in the positioning procedure