Merge pull request #4 from nekoui/master

history upload functionality
refactored login system
Merge pull request #4 from mirador/master

cleaning up the httpconnection