added update_challenge function to node
modified challenge route to generate a new challenge
added heartbeat type to node config
fixed style
modified so state is updated in database when challenge is updated.
Merge pull request #5 from wiggzz/devel

Devel