Merge branch 'refs/heads/master' into resourceful

* refs/heads/master:
  lib/register: #fix: only hearbeats with macs can capture numbers for now
  lib/register: return() after fail()
  lib/register: check mac on create and update, but only when given
  lib/register: fix the callback
  fix: add 'last_seen' property to knoten listings
lib/register: #fix mac check
start #refactor to resourceful
resourceful: use couchdb
Merge branch 'refs/heads/master' into resourceful

* refs/heads/master:
  lib/register: #fix mac check
#refactor: resource create/update works, needs restructuring
#refactor handle resourceful properties number is id, last_seen is mtime. new: created_at (ctime)
#fix: more return() after fail()
lib/errors: log all handled errors (client as debug, server as error level)
Merge branch 'refs/heads/master' into resourceful

* refs/heads/master:
  lib/errors: log all handled errors (client as debug, server as error level)
lib/register: writeKnoten() -> createKnoten(), updateKnoten()
makefile: couch env examples
more #refactor to resourceful
fail(): less log()ging, more return()ing
lib/common: also export the mac regex itself
Makefile: yay, docs from source code
Merge branch 'refs/heads/master' into wip-resourceful

* refs/heads/master:
  Makefile: yay, docs from source code

Conflicts:
	Makefile
resources: virtual properties for number and timestamp
#refactor #resourcful dependenices upgrade
#fix errors ^^