Ui refactor

Some groundwork for expanding functionality as well as view/css cleanup and refactoring

- Added basic inventory panel that lists items owned by your active character
- Added character info panel that displays basic character info
- Stub view at /items/me for all items owned by your active character
- Divide css files into module-specific files
- Clean up css

In doing this I've started to expand how socket.io is used. Will definitely want to think of refactoring that bidness before it gets out of hand. For now for proof of concept I just hacked in a couple inventory functions into chat.js which I think will be a misnomer of a file in the future.
I tried to do that, I spent hours trying to use the sessionId pulled from
the socket, but every time I tried to query mongo with the sessionId I was
getting errors about invalid hex strings, despite the session string being
exactly the same as the ObjectId in the sessions collection. I followed all
the docs and how-tos of finding by Id, casting strings to ObjectIds, etc. I
gave up.


On Wed, Jun 25, 2014 at 12:19 PM, Jacob Reynolds <notifications@github.com>
wrote:

> In public/js/chat.js:
>
> >  $(document).ready(function () {
> >    socket = io.connect(document.URL);
> >    socket.emit('subscribe', {room: 'chat'});
> > +  socket.emit('subscribe', {room: 'inventory', character: character._id});
>
> ultimately we should use the selected character that we set server-side
> for this - the client shouldn't be able to arbitrarily submit a character
> id and display the inventory for that character.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ptmccarthy/nodechat/pull/43/files#r14206420>.
>