Merge pull request #290 from paczian/master

added error functions to ajax requests to catch unauthorized error
updated to new Retina version
simplified webpage structure
removed deprecated files