Refactored src location and added grunt build file

Refactored src location and added grunt build file, so that this can be
packaged properly. Also moved to MIT license, as people seem to like
that better.