Implemented filetype deep detection

dpaste will now check which file type a script is by attempting
to read the shebang on the first line if no extension is provided.