Edit form can now save first field (bucket token)

When clicking save on the edit form, you can now set a bucket token and it will insert a record in the machine table.

Have found an issue in the original code however, this will only ever insert a DB record, not do an update, if you just want to update the bucket token.  This will need to be implemented.