name api views, use reverse() in unit tests
more api tests (mostly triggering execution of some code)

it's hard to test anything without a user / http auth / login / session.
api / session ip updates: reorder evaluation, is a bit faster for failures
a real nic update api test, using basic auth

generate_secret was modified to support giving a secret (not generating a random one), so it matches the test database

add a User and a Host to the test db