Various bug fixes and changes

* Fixing none working autocomplete
* Rewriting autocomplete query.
* Constraints check that always delay the script 60 seconds when adding a new borger.dk article.
* Fixing invalid argument error in element_children().
* Fixing undefined index notices when locale.module is enabled.
* Fixing text formats. The previous code was using a non existing text format named “plaintext”. In D7 core is the plain text format using machine name “plain_text”. This commit fixes this problem, and makes it possible to overwrite the text formats used.
* Change JavaScript applied to micro articles to make it more easy to style and to get rid of the broken background image paths.