Heartbeat problems

Solved heartbeat problems.
Flag representation, changed UI, fixed some bugs.

Added flags representation for the countries available, changed the UI
to include a JQuery prompt, this provides a timeout on user
registration. The page now redirects when the server shuts down and the
client connection persists.
Revert "Flag representation, changed UI, fixed some bugs."

This reverts commit d0e5f9e2fbd0647ac66e0fcaa0f628826a0c440f.
Flag representation, changed UI, fixed some defects.

Added flags representation for the countries available, changed the UI
to include a JQuery prompt, this provides a timeout on user
registration. The page now redirects when the server shuts down and the
client connection persists.
WTS Instance removed.

Fix app.js to exclude WTS instance