Fixes the post function to return the right id.
Changes the templates to use id_for_board.
Updates rebuild.php to work with posts table.