Load of stuff

- smarter debug func: checks for a debug.log file
- tags now created when importing
- smaller batch to try & reduce query count. 15 posts = 300 queries, give or take. Doh.
- all URLs to Twitter use https
Load of stuff

- moved general functions to utils.php
- convert old posts on the fly! awesome
- code cleanup