Fix to Device model
Before the fix new devices could not be
added in the admin interface because
they did not set a last_ping. This is now
set automatically on add.