Implemented most remaining basic functionality

Removed custom template loading calls with cTemplate library, added sending commands with get method, added javascript and jQuery code to execute AJAX calls and update HTML content, refactored the HTML generation code and fixed multiple issues to ensure stable execution.