Update postinst

Make www_user a trusted user (recommended according to NIPAP documentation)
Merge pull request #406 from dosomder/patch-1

Update postinst to make www_user a trusted user
Fixed bug in remove_prefix and pool edit ctrller

Now the correct key is accessed when adding entrys to the audit log
regarding affected pools.

Added c.prefix to the edit_pool controller, as it's accessed in the
prefix_add_container-template.
Include the indent level in result from backend

Part of #340.
Add indent as filter for XHR search

The XHR version of smart_search now allows filtering based on indent
level.

Part of #340.
List top level prefixes on empty search

When performing an "empty search", ie with a zero-length search string,
only list the top level prefixes (indent = 0). An empty search is
probably a sign of that the user wants to see everything and showing
only top level prefixes is probably a better starting point to give an
overview than directly listing and expanding all prefixes.

Fixes #340.
Merge branch '340-list-top-level'
'nipap address view' now shows correct prefix

Fixes an issue with the 'nipap address view' CLI command did not show
the correct prefix if used on a host prefix with other host prefixes
before it in the assignment.

Fixes #414
Simplify the logic around parents/children_depth

This makes the code a bit more compact and easier to read plus that we
explicitly check for -1 instead of allowing any negative value.
Merge pull request #415 from garberg/fix_address_view

'nipap address view' now shows correct prefix
Merge pull request #417 from plajjan/parent-children-depth-logic

Simplify the logic around parents/children_depth
Update upgrade file from db ver 1 to 2

Also allow the creation of debrepo even when not on gh-pages branch.
Update last_modified timestamp on db updates

Any update to the ip_net_plan table will now update the timestamp of the
prefix being updated.

Part of #367.
Improve wording and update db version number

The wording for the questions asked to the user have been reworded
somewhat.

Database structure number in nipapd.config is updated to the latest (2).

Part of #367.
Add new timestamp values to prefixes

The backend now serves two new values, the 'added' and 'last_modified'
columns of the database which are the respective timestamps for when a
prefix was first added and last modified. Both values are also
searchable via the prefix smart search function. Neither value is
writable as the backend updates them automatically.

xmlrpclib, both in the backend and in pynipap, is used with
use_datetime=True which means that the timestamps will automatically be
converted into datetime objects for easier use.

Pynipap does naturally not support saving the values as they are
read-only. The CLI will show the 'added' and 'last_modified' timestamps
when viewing a prefix. At this time, they are mostly meant for internal
usage or via the API, e.g. to bring up all prefixes that have been
changed the last hour to sync with another system.

Fixes #367.
Reverse previous accidental commit

This is reversal of some code that was mistakenly commited together with
a bunch of other code.
Add children column

The children column will be used to cache the number of direct
sub-prefixes (children) to a prefix. It is used by the web front-end to
determine if a expand/collapse icon should be shown or not.

Part of #421.
Fix unit test for added/last_modified timestamps

Part of #367
Update changelogs for v0.22.0
Remove rename of trigger function

This was a half-baked changed that got accidentally commited. Removing
it!