Moved function to get the file extension and the file name to their
module
Update the LayerInfo object and the tests to reflect those changes.
Removed extra char in the template
Use the path.getExt function which handles edge cases better
We need to force all ajax requests to be sync instead of async to
prevent the uploader (Java/Python) from blowing up
Switch to use path.getExt instead of LayerInfo.getExt
Added a test for a new function that makes sure the layer name is safe
to use in a selector
Merge pull request #762 from iwillig/uploadUIFixes

Upload ui fixes