Fixed loading a torrent file from an http url

Conflicts:
	lib/torrentdata/http.js
Merge pull request #13 from davidyaha/bug-fixes/metadata

Fixed loading a torrent file from an http url
Fix "complete is undefined" errors
Merge pull request #14 from jrmathis/master

Fix "complete is undefined" errors
Added support for unix path to preferences and also fixed logs dir creation bug.
Added pause button. Trying to figure out a good way to make it change into a play button based on torrent state. don't really have time right now.
Figured out a way to change the icon on state change. maybe not the best way because of the different actions taken on each press.
Merged upstream fixes
Merge branch 'master' into pause-resume
Changed the name of the angular resources script to a more upfront name..
Changed the name of the angular resources script to a more upfront name..
Merge branch 'pause-resume' of https://github.com/davidyaha/node-torrent-webapp into pause-resume
Revert "Changed the name of the angular resources script to a more upfront name.."

This reverts commit 27f5be2582973320d085a45064a3edbda771d782.
Renamed connection.js to resources.js
Removed the home and current directory delimiters from download path regex
Fix file creation

Ensure checkPath passes the actual file path to its callback, so that files are created in the right directory instead of the torrent basePath.
Merge pull request #16 from njoyard/patch-1

Fix file creation
Prevent invalid peer connections

Ignore peer connections with ports outside 1-65535 (which make dht.js throw exceptions)
Prevent torrents from changing client._extensions

Without this change, adding several torrents to the same client causes exceptions because torrents change client._extensions (torrent.js:209)
Merge pull request #18 from njoyard/patch-1

Prevent invalid peer connections