fixed query for states and added demo environment
added public/system dir
Merge pull request #1 from nature/pa-1324

fixed query for states and added demo environment
changed branch in deploy:
added mongrel configuration
refined deploy config
mongrel starts
changed pid file location
changed ports
fixed mongrel app prefix
Merge pull request #2 from nature/deploy

Deploy