Fix associating tags with posts

...n imported so if the import is run more than once, posts only get imported a single time. Properly associate tags with posts. Properly assign post types to posts. Fix variable name collision with posts. What until update() is called on the post instead of double-committing the post info.



Fixes chrismeller#1 , among other things.