Adding validation and ajax

Harder to add ajax than I first thought. Cookie issues, and rendering
problems
More ajax

Can now remove, and add via ajax.
Added regex for mac validation

Mac address validation using regex
Missed some things from last commit

Last commit also added ajax to the turn on computer form. Form is now
one form, instead of a separate one for each button. Fixed bug with \n
causing macs to be invalid.