Added support for httponly and secure flags. Also did some formatting.

Hello, I added support for the httponly and secure flags into your code. Just wanted to issue a pull request so you could add the functionality in if you so choose. I like the library and it helped me out. Thanks a ton!