Create route for /device handler.
basic device handler, duped from /register handler.
Whitespace fix.
Update planned REST doc.
Big fat nasty update, i should use git correctly.