Refactor code into modules

Author Sasky <sky42ks@gmail.com>
Author date 2014-08-15 00:19:29
Author local date 2014-08-14 17:19:29 -0700
Committer Sasky <sky42ks@gmail.com>
Committer date 2014-08-15 00:19:29
Committer local date 2014-08-14 17:19:29 -0700
Commit d46b95eb768cde89b767029bf51f6d3d1954a789
Tree c681d99c65c15672cb9350350eb64dfea434bf3d
Parent 15ba6b6fc473de751e703ee2212baf24c0ffe25c
Refactor code into modules