Changes to use new firmware 0.58a features

Uses new features of firmware 058a-dc42 to get object height and
filament used from SD card files. produces an estimated end time based
on filament usage.
Various

Changed code that find object height when doing a web print so that it
ignore G1 Z command in comment lines
Show percent complete based on filament used, if available
Made head position boxed fixed width
Fix for object height when direct web printing
Clear out object height when starting a new print
Increased upload speed to 2.5Mb/min
Encode gcodes properly prior to uploading

Fixed to URI encode all gcode strings properly. Increased max upload
buffer size. Reduced the amount of filament that has to be consumed
before we use it to provide an estimate of completion time from 5% to
3%.
Increased upload speed of large files

Increased upload speed of large files. Previously, the upload speed
decreased with increasing file size. Now uploads a 10Mb file at
2.2Mb/min.
Fix extrusion direction buttons

Make the "checked" attribute on the input element match the "active" attribute on the label, so extrusion direction (when loading the web page) matches the UI.
Merge pull request #1 from jstck/patch-1

Fix extrusion direction buttons
Better file upload etc., needs firmware 059b-dc42

Improved file upload speed
Removed limit on maximum line length in uploaded files
When uploading web files, upload .js files to js folder and .css files
to css folder
Changed delete buttons in SD card file list to work in FireFox as well
as Chrome
Increased max temperature in chart to 280C
Removed direct web print facility
Partial fix for when filenames are too long

Partial fix for when filenames are too long to fit in the boxes in the
SD card listing
Got new file upload protocol working
Use HTML 5 progress bar etc.

Use the HTML 5 progress bar to show progress because the home-made one
wasn't updating properly when the file upload speed was increased. Show
the size of the uploaded file.
Changes for firmware 059c-dc42

Changes for new upload protocol supported by 059c firmware
Merge pull request #10 from dc42/master

Pull dc42's latest changes