fix bugs in service.js, add $cookie factory, do a little work on demo
add circular check for module