Merge pull request #2 from davewhittaker/master

Fixes for template resolution
Added a Snippet (and it works!!).
In build.sbt i added things that help manage web app folder:
1. It copy its content to root of final jar
2. Add support to watch changes (via ~)

Additionally i added part of dist plugin. It adds command package-dist:
1. It add manifest entries about main class, classpath.
2. Copy all dependencies to dist/lib
3. Zip jar and dependencies in one distributable archive.

So you will can just run it will java --jar your_jar and it will 'just work'. I prefer such way others that create uber-jars and plays with class loaders.
Merge pull request #3 from btd/master

Organise build process and fixed resource lookups.
A bit cleanup work with cookie:
1. remove overwork like string map toByte or string toCharArray map toByte.
2. Replace 2 cookies with one using base64 encoding. So it is: ID.SIGNATURE (JSESSIONID.HSSESSIONID)
3. Use SecureRandom instead UUID

PS. not sure if getSessionId should return Box because now it return Full every time.
Merge pull request #4 from btd/master

A bit organise cookies
Fixed a string split issue.
Added Comet component for testing. (fails)
Moved to right package name.
Small cleanups.
Implemented suspend / resume support
Moving towards a full comet implementation.  Next up, sessions.
Implemented sessions using a singleton actor to hold references and handle expirations.  Comet still isn't working, but it's closer now.
Streams need to be explicitly closed if they are left open in an unsuspended request.

I imagine that the servlet container takes care of this, so Lift doesn't seem to always close them.  If they remain unclosed, the page never fully loads and no scripts are executed.  This commit also includes some fixes for my Netty session implementation.
Fixes necessary to add session and comet support.  Comet works!