Also allow logins from local IPs (related to #5).
Also separate utils.ts file which was getting too big, and add a POST test